首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Eclipse开发 >

sql2005 java 连接有关问题

2011-12-28 
sql2005 java 连接问题Java codecom.microsoft.sqlserver.jdbc.SQLServerException: Invalid integratedSe

sql2005 java 连接问题

Java code
com.microsoft.sqlserver.jdbc.SQLServerException: Invalid integratedSecurity property value:true    at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(Unknown Source)    at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(Unknown Source)    at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(Unknown Source)    at java.sql.DriverManager.getConnection(Unknown Source)    at java.sql.DriverManager.getConnection(Unknown Source)    at xs.Student_Management_System.main(Student_Management_System.java:4670)


怎么回事

[解决办法]
con=DriverManager.getConnection("jdbc:sqlserver://localhost:1433;integratedSecurity=true;DatabaseName=Student_Management_System;");
这一句先换成con=DriverManager.getConnection("jdbc:sqlserver://localhost:1433;DatabaseName=Student_Management_System;");
试一下

热点排行