可以呀!String  url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=test";    
//test为你的数据库的    
String  user="sa";    
String  password="";    
Connection  conn=  DriverManager.getConnection(url,user,password);url="jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=test";    
//test为你的数据库的    
user="sa";    
password="";    
Connection2  conn=  DriverManager.getConnection(url,user,password);