请问在Applet下怎样链接mssql?
以下代码:为什么报错:[不能找到Microsoft SQL Server数据库的驱动程序]
String driver = "com.microsoft.jdbc.sqlserver.SQLServerDriver";
String url = "jdbc:microsoft:sqlserver://192.168.250.61;databasename=Model_1";
try
{
Class.forName(driver);
Connection conn = DriverManager.getConnection(url,"sa","");
}
catch(ClassNotFoundException cnfe) {
textArea1.setText("不能找到Microsoft SQL Server数据库的驱动程序");
}
catch (SQLException sqle)
{
textArea1.setText("不能连接到Microsoft SQL Server数据库 ");
}