Hi,
I am trying to connect to SQL server Express DB installed on localbox from my
java program. I am using jtds driver and the sample code is below.
When I try to run the program, I get an error saying
"java.sql.SQLException: Network error IOException: Connection refused: connect"
If I use
I get an error "java.sql.SQLException: Server localhost has no instance named SQLEXPRESS."
I have the driver jar in class path and my VM args are "
-Djava.library.path=C:\jtds-1.2.5-dist\x64\SSO" pointing to the NTLM dll.
I am able to connect to the DB from the MS SQL Server Management Studio.
Can somebody help me to solve this?