The ODBC connection is setup and testing grand. I can log into the DB via the management console no problem. Also the windows firewall is disabled.
But if I try to run the java file it errors out with:
The connection string is below and its connecting to a SQL 2005 DB.
I'm going crazy, can anyone point me in the right direction?
P.S. - I didn't set up the SA user in the java, it was done previously and can't be changed.
But if I try to run the java file it errors out with:
error java.sql.SQLExc eption: [Microsoft][ODBC SQL Server Driver][SQL Server]Login failed for user 'sa'.
Code:
String surl="jdbc:odbc:testconnect"; Connection con=DriverManager.getConnection(surl,"sa","password");
P.S. - I didn't set up the SA user in the java, it was done previously and can't be changed.
Comment