{"id":230,"date":"2007-02-02T19:56:43","date_gmt":"2007-02-03T00:56:43","guid":{"rendered":"http:\/\/www.juixe.com\/techknow\/index.php\/2007\/02\/02\/jdbc-and-sql-server-2005\/"},"modified":"2007-02-02T19:56:43","modified_gmt":"2007-02-03T00:56:43","slug":"jdbc-and-sql-server-2005","status":"publish","type":"post","link":"http:\/\/juixe.com\/techknow\/index.php\/2007\/02\/02\/jdbc-and-sql-server-2005\/","title":{"rendered":"JDBC and SQL Server 2005"},"content":{"rendered":"<p>Here is a quick tip.  If your Java application is connecting to SQL Server 2005 via JDBC and you get a connection exception, check your that SQL Server has its TCP\/IP protocol enabled.  It took me a bit of digging to realize this when setting up a new test server.  Here are the steps.  Open the <b>SQL Server Configuration Manager<\/b>.  In the configuration manager drill down to SQL Server Configuration Manager &gt; SQL SErver 2005 Network Configuration &gt; Protocols for SQLEXPRESS.  Verify that the TCP\/IP protocol is enabled.  I also had to set the correct port number, 1433, in the TCP\/IP Properties.  After this, I was able to connect to SQL Server 2005 via JDBC.<\/p>\n<p>Since I am on the subject, if you are working with a Java application and want to support SQL Server I recommend you use the <a href=\"http:\/\/jtds.sourceforge.net\/\">jTDS<\/a> JDBC driver.<\/p>\n<p>Technorati Tags: <a href=\"http:\/\/technorati.com\/tag\/sql\" rel=\"tag\">sql<\/a>, <a href=\"http:\/\/technorati.com\/tag\/java\" rel=\"tag\"> java<\/a>, <a href=\"http:\/\/technorati.com\/tag\/jdbc\" rel=\"tag\"> jdbc<\/a>, <a href=\"http:\/\/technorati.com\/tag\/sql+server\" rel=\"tag\"> sql server<\/a>, <a href=\"http:\/\/technorati.com\/tag\/sqlserver\" rel=\"tag\"> sqlserver<\/a>, <a href=\"http:\/\/technorati.com\/tag\/sqlserver2005\" rel=\"tag\"> sqlserver2005<\/a>, <a href=\"http:\/\/technorati.com\/tag\/express\" rel=\"tag\"> express<\/a>, <a href=\"http:\/\/technorati.com\/tag\/microsoft\" rel=\"tag\"> microsoft<\/a>, <a href=\"http:\/\/technorati.com\/tag\/jtds\" rel=\"tag\"> jtds<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Here is a quick tip. If your Java application is connecting to SQL Server 2005 via JDBC and you get a connection exception, check your that SQL Server has its TCP\/IP protocol enabled. It took me a bit of digging to realize this when setting up a new test server. Here are the steps. Open [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"spay_email":"","footnotes":""},"categories":[15,23,3],"tags":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p902K-3I","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/230"}],"collection":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/comments?post=230"}],"version-history":[{"count":0,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/posts\/230\/revisions"}],"wp:attachment":[{"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/media?parent=230"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/categories?post=230"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/juixe.com\/techknow\/index.php\/wp-json\/wp\/v2\/tags?post=230"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}