java连不到SQL2005数据库,初学者 import java.sql.*;
public class TestDB{
private Connection con = null;
public TestDB(){
try{
Class.forName("com.microsoft.sqlserver.jdbc.SQLServerDriver");
con = DriverManager.getConnection("jdbc:sqlserver://K3FP8DNOHQSHHTX:1433;DatabaseName=master","administrator","123456");