Connection con;
String className="com.microsoft.sqlserver.jdbc.SQLServer";
try
{
Class.forName("className");
}
catch(ClassNotFoundException e)
{
e.printStackTrace();
}
try
{
con=DriverManager.getConnection(/*就是这里不会写*/);
}
String className="com.microsoft.sqlserver.jdbc.SQLServer";
try
{
Class.forName("className");
}
catch(ClassNotFoundException e)
{
e.printStackTrace();
}
try
{
con=DriverManager.getConnection(/*就是这里不会写*/);
}