0

i havae problem java connection with sql server 2005 in windows authentication mode my code is as follows

Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    Connection connection = DriverManager
            .getConnection("jdbc:sqlserver://localhost:1433;database=dbName;integratedSecurity=true;");
2
Contributors
4
Replies
5
Views
5 Years
Discussion Span
Last Post by anilchuthur
0
   Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
    Connection connection = DriverManager
  .getConnection("jdbc:sqlserver://localhost:1433;database=dbName;integratedSecurity=true;");
0

This may be relevant?

There are frequently equally valid synonyms for connection string syntax elements, but some syntax and spelling errors can cause problems. For example, "Integrated Security=true" is valid, whereas "IntegratedSecurity=true" causes an error.

Source

0

i want to connect sql server 2005 in windows authentication mode, i connect it by using jtds driver, but i do not want to use jtds driver and without it gives me an error while connecting databse,

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.