I'm using the following coding to connect locally on my SQL
database
String driver = "net.sourceforge.jtds.jdbc.Driver";
Class.forName(driver).newInstance();
String connString = "jdbc:jtds:sqlserver://127.0.0.1:1433/dbname";
conn = DriverManager.getConnection(connString,"user","pass");
When I'm running this application it gives me Network error
. Failed to connect to 127.0...
My firewall is open for 1433
and SQL
config TCP/IP
is enabled. What else must I still do?
I fix this error. I was working on jtds driver v1.3.1. When I'm using the older version it works. I'm using now v1.2.5
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments