gamartin wrote:I am getting the same error as everyone else typically gets (see below).
Yes I have ensured that my SQL instance is set to accept TCP/IP.
The error message clearly indicates that it is a connection problem.
Are you using the correct port? (IIRC SQL Server Express does not use the standard port 1433)
What about the firewall? (Although I doubt that it kicks in for local connections)
Is the services really started?
Can you connect from other JDBC based tools?
Can you connect from SQL Server Management Studio Express?
I am wondering if it is more a question of the syntax required to indicate "SQLExpress" in the connection parameters than anything else really. I have seen 2 different possibilities in the forum, one as "localhost\SQLExpress" and on with the port reading "1433;instance=SQLExpress".
I have never used the instance parameter.
The following URL works fine for me:
jdbc:sqlserver://localhost;databaseName=mydb
What makes me think 2.0 does/did not work was that I downloaded it, installed it, tried to create a new JDBC connection using it and when I tested the connection got an error saying that that version of the driver was not supported. Unfortunately now I cannot recreate that result, however my original issue remains the same.
V2.0 contains two different jar files.
One is named sqljdbc.jar which will only work with Java 5.
The other is named sqljdbc4.jar which will only work with Java 6.
So depending on the Java version you are using you need to use either the first or the second file.
See also this post here: http://www.sqlpower.ca/forum/posts/list/2612.page