深入JDBC sqlserver连接写法的详解

SQL Server 2000复制代码 代码如下:String driverName = "com microsoft jdbc sqlserver SQLSe
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";

标签: JDBC sqlserver 连接