深入JDBC sqlserver连接写法的详解
程序员文章站
2024-02-21 08:14:46
sql server 2000复制代码 代码如下:string drivername = "com.microsoft.jdbc.sqlserver.sqlserverdr...
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";
复制代码 代码如下:
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";