Hi , I am trying to connect to MS Sql server 2000 from Java (1.4.2 /
1.5 ). I installed my Sql Server(8.00.382) from the one supplied with
VS.NET 2001. When I installed it on my laptop it did not ask me for a
user name and password. After install when I re-started my machine I
see the server started up with a green light. Now when I connect to the
server from VS.NET it works fine. This is because VS uses windows
integrated security. I now need to connect using Java , so I downloaded
the microsoft drivers for SQL2000-JDBC sp3 from the microsoft site. I
added the jar files to my Java project classpath. I manage to register
the driver in java :
Class dbClass = ClassLoader.getSystemClassLoader().
loadClass("com.microsoft.jdbc.sqlserver.SQLServerD river");
DriverManager.registerDriver((Driver) dbClass.newInstance() );
Connection conn =
DriverManager.getConnection("jdbc:microsoft:sqlser ver://localhost:1433;_
integrated security=SSPI");
but cannot seem to get a connection as it gives an SQLException saying
that it is unable to connect:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error
establishing socket.
I cant seem to figure it out.Can some one help ??
I am a newbie to sqlserver so couldnt quite figure out how to change
admin password or create a new user with the tools provided with this
version of sql (SQL Server Desktop Engine).
Any help will be appreciated.
Ebby