jdbc:odbc connection string
843785Jul 18 2008 — edited Jul 18 2008I have a server with SQL Server 2005. I have made a .udl file to verify that the DSN is working. The server is up and running everything is working fine. However, I am havign trouble accessing it with my JAVA code. What is the correct format for DriverManager.getConnection();?
I am trying:
DriverManager.getConnection("jdbc:odbc:DSNNAME;user=username;password=password");
and I am getting:
Exception: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
please help!