posted 17 years ago
Your code is missing a declaration for a driver. For instance, in MySQL I would use:
Class.forName( "com.mysql.jdbc.Driver" ).newInstance();
I'm not sure what you would put for SQL Server, but I'm sure you could google that answer quite easily.
In addition to that, you will have to create a path to your database. In windows, you'll have to go to your control panel, then ODBC Settings and then create a new data source.
[ May 18, 2007: Message edited by: Jason Kwok ]