作者:Turkey小白 | 来源:互联网 | 2021-12-18 07:52
SQL Server 2000
代码如下:
String driverName = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String dbURL = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=sample";
SQL Server 2005和SQL Server 2008
代码如下:
String driverName = "com.microsoft.sqlserver.jdbc.SQLServerDriver";
String dbURL = "jdbc:sqlserver://localhost:1433; DatabaseName=sample";