怎么连sql7.0数据库呢,好像与2000不同厄
surfs 2004-03-07 10:45:32 try{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
System.out.println("database connection driver register success!");
Connection con=DriverManager.getConnection("jdbc:microsoft:sqlserver://sea:1433;DatabaseName=pubs;User=sa;Password=a");
System.out.println("success connection to database");
}
catch(Exception e){
System.out.println("failure connection to database");
e.printStackTrace();
}
连的时候提示database connection driver register success!哈,驱动注册成功
接着是failure connection to database哀!
当然驱动是sqlserver2000 for jdbc的驱动,而我的系统是sql server7.0的数据库系统
问:
是不是sqlserver7.0有专用驱动阿,我找了二天硬没有找着了,sqlserver7.0装了三遍了,有sqlserver2000 个人版,可在windows2000上装不上阿
请教各位!!!!!!!!!!!!!!