- 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;");
试一下