There are two things that I am having trouble understanding:
1. How to connect to the server. I do not know if I should use localhost or not? (I am linking to a database that is not on my local machine, if that matters)
2. How to connect to the correct database, as there are a couple of databases under that server
This is what I have so far:
MAIN -> My Server
1433: TCP/IP Port
DB_Accounts -> The Database I want to connect to
String dbURL = "jdbc:sqlserver://MAIN\\SQLEXPRESS:1433/DB_Accounts;user=myuser;password=mypass;"; // Connect the server and the database
thanks for any help given