<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Microsoft JDBC Driver Team Blog : Troubleshooting</title><link>http://blogs.msdn.com/jdbcteam/archive/tags/Troubleshooting/default.aspx</link><description>Tags: Troubleshooting</description><dc:language>en-US</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>SQL Server 2005 JDBC Driver and Database Mirroring</title><link>http://blogs.msdn.com/jdbcteam/archive/2009/01/05/sql-server-2005-jdbc-driver-and-database-mirroring.aspx</link><pubDate>Tue, 06 Jan 2009 01:30:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:9283823</guid><dc:creator>dpblogs</dc:creator><slash:comments>2</slash:comments><comments>http://blogs.msdn.com/jdbcteam/comments/9283823.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jdbcteam/commentrss.aspx?PostID=9283823</wfw:commentRss><description>&lt;P&gt;We've heard from some customers that they are having difficulty getting Database Mirroring to work with our JDBC driver.&amp;nbsp; Recently, Adam from our counterpart customer service team posted a great blog on this topic.&amp;nbsp; Please refer to his blog regarding a couple of gotchas with the v1.2 driver.&lt;/P&gt;
&lt;P&gt;&lt;A href="http://blogs.msdn.com/psssql/archive/2008/12/31/sql-2005-jdbc-driver-and-database-mirroring.aspx" mce_href="http://blogs.msdn.com/psssql/archive/2008/12/31/sql-2005-jdbc-driver-and-database-mirroring.aspx"&gt;http://blogs.msdn.com/psssql/archive/2008/12/31/sql-2005-jdbc-driver-and-database-mirroring.aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Jimmy Wu&lt;BR&gt;SQL Server JDBC Team&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=9283823" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jdbcteam/archive/tags/JDBC/default.aspx">JDBC</category><category domain="http://blogs.msdn.com/jdbcteam/archive/tags/Connectivity/default.aspx">Connectivity</category><category domain="http://blogs.msdn.com/jdbcteam/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category><category domain="http://blogs.msdn.com/jdbcteam/archive/tags/Features/default.aspx">Features</category></item><item><title>The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption.</title><link>http://blogs.msdn.com/jdbcteam/archive/2008/09/09/the-driver-could-not-establish-a-secure-connection-to-sql-server-by-using-secure-sockets-layer-ssl-encryption.aspx</link><pubDate>Wed, 10 Sep 2008 03:26:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8938263</guid><dc:creator>dpblogs</dc:creator><slash:comments>4</slash:comments><comments>http://blogs.msdn.com/jdbcteam/comments/8938263.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jdbcteam/commentrss.aspx?PostID=8938263</wfw:commentRss><description>&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;What is SSL and why is my JDBC driver using it?&lt;?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /&gt;&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;The v1.2 JDBC driver uses SSL (Secure Sockets Layer) to encrypt connections to SQL Server for improved security.&amp;nbsp; Where it can, the v1.2 driver ALWAYS uses SSL to encrypt the login to SQL Server.&amp;nbsp; For integrated auth connections, SSL provides an added layer of security.&amp;nbsp; For SQL auth, where the user name and password would otherwise be sent in the clear, SSL provides an essential layer of security.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT size=3&gt;&lt;FONT face=Calibri&gt;I trust that my network is secure without SSL...&amp;nbsp; How do I turn off SSL encryption?&lt;o:p&gt;&lt;/o:p&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;You can control whether a connection encrypts all data to and from the server after login using the ‘encrypt’ connection property.&amp;nbsp; However, where it can, the v1.2 driver ALWAYS uses SSL to encrypt the login to SQL Server.&amp;nbsp; You cannot disable SSL encryption of the SQL Server login.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT face=Calibri size=3&gt;Ok, but I upgraded to v1.2 and now I can’t connect!&amp;nbsp; Why am I getting the error “The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: …”?&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;Odds are good that your Java SSL setup is messed up somehow.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;SSL in Java is provided through the Java Secure Socket Extension (JSSE).&amp;nbsp; Its reference guide (for J2SE 5) is here: &lt;/FONT&gt;&lt;A href="http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html" mce_href="http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html"&gt;&lt;FONT face=Calibri color=#0000ff size=3&gt;http://java.sun.com/j2se/1.5.0/docs/guide/security/jsse/JSSERefGuide.html&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt; .&amp;nbsp; A key aspect of JSSE is its pluggable provider model. Typically, JRE vendors supply JSSE provider implementations.&amp;nbsp; There are at least two main JSSE providers available out there and they do not necessary work well together.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;For SSL to work at all, it is absolutely necessary to have the JSSE providers configured correctly for the JRE you are using.&amp;nbsp; There are two steps to this:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;1)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;Look at the java.security file in your JRE installation (typically found in the jre\lib\security directory).&amp;nbsp; The installed security providers are listed in that file as security.provider.x=… where ‘x’ is the priority used.&amp;nbsp; For Sun JRE installations, the first priority provider should be Sun’s.&amp;nbsp; E.g.: you should have the line “security.provider.1=sun.security.provider.Sun” in that file.&amp;nbsp; For other JRE's, please refer to the JRE's documentation regarding their&amp;nbsp;default provider name.&amp;nbsp; We recommend when using the IBM JRE to specify the "com.ibm.jsse.IBMJSSEProvider" as the first security provider to use.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l0 level1 lfo1"&gt;&lt;SPAN style="mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;2)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;Next, make sure that the classpath points to the correct JAR files (in the jre\lib directory) for use with those providers.&amp;nbsp; For Sun, the classpath should include jsse.jar.&amp;nbsp; For IBM,&amp;nbsp; should include ibmjsse.jar.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;If either the classpath or the java.security file is not correct, SSL will not work.&amp;nbsp; Not just with SQL Server, but with anything else either.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT face=Calibri size=3&gt;SSL works for other apps, just not with JDBC.&amp;nbsp; And I’ve verified that the classpath is correct… Check certificates&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;If you are going to configure SQL Server to use a server certificate, then that certificate needs (or the certificate of one of its trusted issuing authorities) needs to be present in Java’s certificate store.&amp;nbsp; If the certificate isn’t there, chances are that your JSSE provider will give you a nice descriptive, if sometimes cryptic, error.&amp;nbsp; Configuring the client for use with SSL is covered in our docs here &lt;/FONT&gt;&lt;A href="http://msdn2.microsoft.com/en-us/library/bb879943.aspx" mce_href="http://msdn2.microsoft.com/en-us/library/bb879943.aspx"&gt;&lt;FONT face=Calibri color=#0000ff size=3&gt;http://msdn2.microsoft.com/en-us/library/bb879943.aspx&lt;/FONT&gt;&lt;/A&gt;&lt;FONT face=Calibri size=3&gt; .&amp;nbsp; Some certificates are quite large and trip up older&amp;nbsp;JSSE providers.&amp;nbsp; Of course there may be other VMs out there with similar problems,&amp;nbsp;but we are not able to verify all of them. &amp;nbsp;A smaller certificate may help in this case.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;FONT face=Calibri size=3&gt;Not a configuration problem or a certificate problem.&amp;nbsp; Now what.&lt;/FONT&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;When contacting Microsoft to help us&amp;nbsp;be effective, we need to be armed with the following info:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"&gt;&lt;SPAN style="mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;1)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;The &lt;U&gt;complete&lt;/U&gt; text of the error message.&amp;nbsp; I.e. including the part after “Error: …” above.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"&gt;&lt;SPAN style="mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;2)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;A stack trace (if available).&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"&gt;&lt;SPAN style="mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;3)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;A &lt;U&gt;complete&lt;/U&gt; log (if available) containing FINEST TDS-level traces leading up to the error.&amp;nbsp; In particular, the following loggers should be enabled in the logging properties:&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in"&gt;&lt;FONT face=Calibri size=3&gt;com.microsoft.sqlserver.jdbc.TDSChannel.level = FINEST&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in"&gt;&lt;FONT face=Calibri size=3&gt;com.microsoft.sqlserver.jdbc.TDSReader.level = FINEST&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in"&gt;&lt;FONT face=Calibri size=3&gt;com.microsoft.sqlserver.jdbc.TDSWriter.level = FINEST&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt 1in"&gt;&lt;FONT face=Calibri size=3&gt;com.microsoft.sqlserver.jdbc.TDS.DATA.level = FINEST&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Generating the log file with the XMLFormatter is preferred over SimpleFormatter, as it gives us more info.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"&gt;&lt;SPAN style="mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;4)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;The java.security file that was used.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"&gt;&lt;SPAN style="mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;5)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;Vendor and version of the JRE used.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"&gt;&lt;SPAN style="mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;6)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;SQL Server version&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoListParagraph style="MARGIN: 0in 0in 0pt 0.5in; TEXT-INDENT: -0.25in; mso-list: l1 level1 lfo2"&gt;&lt;SPAN style="mso-fareast-font-family: Calibri; mso-bidi-font-family: Calibri"&gt;&lt;SPAN style="mso-list: Ignore"&gt;&lt;FONT face=Calibri size=3&gt;7)&lt;/FONT&gt;&lt;SPAN style="FONT: 7pt 'Times New Roman'"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;FONT face=Calibri size=3&gt;The connection string/connection properties used.&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;B&gt;&lt;o:p&gt;&lt;FONT face=Calibri size=3&gt;&amp;nbsp;&lt;/FONT&gt;&lt;/o:p&gt;&lt;/B&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;David Olix &amp;amp; Jimmy Wu&lt;/FONT&gt;&lt;/P&gt;
&lt;P class=MsoNormal style="MARGIN: 0in 0in 0pt"&gt;&lt;FONT face=Calibri size=3&gt;SQL Server JDBC Team&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=8938263" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jdbcteam/archive/tags/JDBC/default.aspx">JDBC</category><category domain="http://blogs.msdn.com/jdbcteam/archive/tags/Connectivity/default.aspx">Connectivity</category><category domain="http://blogs.msdn.com/jdbcteam/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category></item><item><title>com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication.</title><link>http://blogs.msdn.com/jdbcteam/archive/2007/06/18/com-microsoft-sqlserver-jdbc-sqlserverexception-this-driver-is-not-configured-for-integrated-authentication.aspx</link><pubDate>Tue, 19 Jun 2007 01:17:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3391767</guid><dc:creator>dpblogs</dc:creator><slash:comments>26</slash:comments><comments>http://blogs.msdn.com/jdbcteam/comments/3391767.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jdbcteam/commentrss.aspx?PostID=3391767</wfw:commentRss><description>&lt;P&gt;On a Windows platform, when trying to connect to SQL Server using Integrated Authentication, you may see this exception:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; com.microsoft.sqlserver.jdbc.SQLServerException: This driver is not configured for integrated authentication.&lt;BR&gt;along with&amp;nbsp;the following&amp;nbsp;trace message:&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; com.microsoft.sqlserver.jdbc.AuthenticationJNI &amp;lt;clinit&amp;gt;&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; WARNING: Failed to load the sqljdbc_auth.dll&lt;/P&gt;
&lt;P&gt;This generally indicates that the driver can not find the appropriate&amp;nbsp;sqljdbc_auth.dll&amp;nbsp;in the JVM library path.&amp;nbsp; To correct the problem, please use the java.exe -D option to specify the "java.library.path" system property value.&amp;nbsp; You will want to specify the full path to the directory contain the sqljdbc_auth.dll.&lt;BR&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; For example:&amp;nbsp;&amp;nbsp;java -cp .;"c:\jdbcv1_2\sqljdbc.jar" -Djava.library.path="c:\jdbcv1_2\auth\x86"&amp;nbsp;myApp&lt;/P&gt;
&lt;P&gt;Alternatively, you can copy the sqljdbc_auth.dll to a directory in the search path (example: the local directory where you are executing your application).&lt;/P&gt;
&lt;P&gt;Note: You&amp;nbsp;may also&amp;nbsp;get the same&amp;nbsp;error message if the application is trying to use the incorrect architecture (x86 VS x64) version of the sqljdbc_auth.dll.&amp;nbsp; Try specifying the directory path to the other architecture.&lt;BR&gt;If you are on&amp;nbsp;a x64 machine running x64 OS, but the JVM you are using is the x86 version, you will need to specify and use the x86 version of the sqljdbc_auth.dll.&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Some related information:&lt;/STRONG&gt;&lt;BR&gt;If you get the following exception:&lt;BR&gt;&amp;nbsp; java.lang.UnsatisfiedLinkError: GetDNSName&lt;BR&gt;This typically indicates that&amp;nbsp;the application&amp;nbsp;is trying to use the incorrect version (say v1.0&amp;nbsp;VS v1.1)&amp;nbsp;of the sqljdbc_auth.dll.&amp;nbsp; Make sure the application is using the save version of the sqljdbc.jar and sqljdbc_auth.dll files.&lt;/P&gt;
&lt;P mce_keep="true"&gt;&lt;FONT color=#0000ff&gt;Jimmy Wu, SQL Server&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;FONT color=#800080&gt;Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3391767" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jdbcteam/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category></item><item><title>java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver</title><link>http://blogs.msdn.com/jdbcteam/archive/2007/06/15/java-lang-classnotfoundexception-com-microsoft-jdbc-sqlserver-sqlserverdriver.aspx</link><pubDate>Sat, 16 Jun 2007 01:59:00 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:3322169</guid><dc:creator>dpblogs</dc:creator><slash:comments>18</slash:comments><comments>http://blogs.msdn.com/jdbcteam/comments/3322169.aspx</comments><wfw:commentRss>http://blogs.msdn.com/jdbcteam/commentrss.aspx?PostID=3322169</wfw:commentRss><description>&lt;P&gt;If you are seeing this exception while trying to use the SQL Server 2005 JDBC driver, then you will need to update the application.&lt;/P&gt;
&lt;P&gt;The class name has changed between the SQL Server 2000 JDBC driver and the SQL Server 2005 JDBC driver.&amp;nbsp; This particular class "com.microsoft.jdbc.sqlserver.SQLServerDriver" is the class name for the SQL Server 2000 JDBC driver.&amp;nbsp; The SQL Server 2005 JDBC driver class name is "&lt;STRONG&gt;com.microsoft.sqlserver.jdbc.SQLServerDriver&lt;/STRONG&gt;".&lt;BR&gt;Note the change: from "microsoft.jdbc.sqlserver" to "microsoft.sqlserver.jdbc"&lt;/P&gt;
&lt;P&gt;In addition, the SQL Server 2005 JDBC driver has a different URL prefix from the SQL Server 2000 JDBC driver.&amp;nbsp; The SQL Server 2000 JDBC driver uses an URL prefix of "jdbc:microsoft:sqlserver://", while the SQL Server 2005 JDBC driver uses an URL prefix of "&lt;STRONG&gt;jdbc:sqlserver://&lt;/STRONG&gt;".&lt;BR&gt;Note the removal of "microsoft" from the URL prefix.&lt;/P&gt;
&lt;P&gt;For additional information on all the different Connection string properties, please refer to the following MSDN topic: &lt;A href="http://msdn2.microsoft.com/en-us/library/ms378428(SQL.90).aspx" mce_href="http://msdn2.microsoft.com/en-us/library/ms378428(SQL.90).aspx"&gt;http://msdn2.microsoft.com/en-us/library/ms378428(SQL.90).aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color=#0000ff&gt;Jimmy Wu, SQL Server&lt;BR&gt;&lt;/FONT&gt;&lt;FONT face=Arial&gt;&lt;SPAN style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"&gt;&lt;FONT color=#800080&gt;Disclaimer: This posting is provided "AS IS" with no warranties, and confers no rights&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;img src="http://blogs.msdn.com/aggbug.aspx?PostID=3322169" width="1" height="1"&gt;</description><category domain="http://blogs.msdn.com/jdbcteam/archive/tags/Troubleshooting/default.aspx">Troubleshooting</category></item></channel></rss>