谢谢!!
我测试了一下. 没问题的哦.
/**
* @(#)SQLTest.java
*
*
* @author if
* @version 1.00 2007/3/26
*/
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
public class SQLTest {
public static void main(String[] args) throws Exception{
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver").newInstance();
Connection con=DriverManager.getConnection("jdbc:microsoft:sqlserver://localhost:1433;"+
"DatabaseName=Northwind","sa","admin");
Statement stmt=con.createStatement();
String sql="Create Table ttemp(第一列 varchar(20))";
stmt.executeUpdate(sql);
System.out.println("success");
stmt.close();
con.close();
con=null;
}
}