|
I use the following method to connect to the database
Class.forName ("com.microsoft.jdbc.sqlserver.SQLServerDriver"). NewInstance ();
String url = "jdbc: microsoft: sqlserver: // localhost: 1433; DatabaseName = mydb";
// mydb is the database
String user = "sa";
String password = "";
Connection conn = DriverManager.getConnection (url, user, password);
Where does the "com.microsoft.jdbc.sqlserver.SQLServerDriver" package come in?
The error message is that this package cannot be found |
|