首页 > 编程 > Java > 正文

JAVA之JDBC Driver For SQL2000/2005/2008

2019-11-06 06:36:25
字体:
来源:转载
供稿:网友
//1、连接SqlServer2000PRivate static final String DRIVERCLASS = "com.microsoft.jdbc.sqlserver.SQLServerDriver";private static final String URL = "jdbc:microsoft:sqlserver://localhost:1433; DatabaseName=database";private static final String USERNAME = "sa";private static final String PASSWord = "123456";   //2、连接SqlServer2005/2008private static final String DRIVERCLASS = "com.microsoft.sqlserver.jdbc.SQLServerDriver";private static final String URL = "jdbc:sqlserver://localhost:1433; DatabaseName=database";private static final String USERNAME = "sa";private static final String PASSWORD = "123456";
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表