Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");//得到连接 Connection ct=DriverManager.getConnection("jdbc:microsoft:sqlserver://x.x.x.x:x;databaseName=x","x","x");