以SQL Server 2000为例:
String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String url = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=db_table_model";
String user = "mihu";
String password ="";
Class.forName(driver).newInstance();
Connection conn = DriverManager.getConnection(url,user,password);其他数据库请见: http://www.csdn.net/develop/article/17/17032.shtm
String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String url = "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=db_table_model";
String user = "mihu";
String password ="";
Class.forName(driver).newInstance();
Connection conn = DriverManager.getConnection(url,user,password);其他数据库请见: http://www.csdn.net/develop/article/17/17032.shtm
JDataStore
hsqldb