81,094
社区成员
发帖
与我相关
我的任务
分享
String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String url = "jdbc:microsoft:sqlserver://localhost:1433;databaseName=数据库名称;SelectMethod=Cursor";
//jtds:
String driver = "net.sourceforge.jtds.jdbc.Driver";
String url = "jdbc:jtds:sqlserver://localhost:1433;instance=MSSQL2000;databaseName=数据库名称;SelectMethod=Cursor";
Class.forName(driver );
Connection conn = DriverManerger.getConnection