1.启动JB的Tools—》Database Pilot,在DBPilot的View》Options里面
Drivers页面,选择Add...增加你要的Class进去
2.Applet禁止了许多未经授权的行为,包括读取本地的资源,包括文件和ODBC
所以是不行的,除非用签名的Applet
Drivers页面,选择Add...增加你要的Class进去
2.Applet禁止了许多未经授权的行为,包括读取本地的资源,包括文件和ODBC
所以是不行的,除非用签名的Applet
//注册SQLServer2000 jdbc驱动程序
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
//连接数据库
Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://192.9.200.52:1433;databaseName=bluesite", "sa", "");
----------------------------------
或者
用 sun.jdbc.odbc.JdbcOdbcDriver 就可以连上啊static final String DBDriver ="sun.jdbc.odbc.JdbcOdbcDriver";
static final String strConn ="jdbc:odbc:wap";
com.borland.dx.dataset.DataSetException: The URL: jdbc:jdbc:microsoft:sqlserver://wnx02:1433 could not be found. Check for misspellings, and that the right driver is present on the classpath.
这是怎么回事嘛?