Hello,

You must set a SYSTEM DSN not a USER DSN

Le 12:36 05/05/99 -0400, Curi, Miguel E (Miguel) a �crit:
>My program is able to load the driver but it fails to open the connection.
>
>I am using :
>
>Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
>Connection conn = DriverManager.getConnection("jdbc:odbc:MyDatabase"); <----
>This fails.
>
>I have MyDatabase setup in the ODBC Datasource Administrator of Windows NT
>Workstation 4.0 SP4 as:
>
>User DSN: Pointing to my database file
>D:\JavaWebServer1.1.3\database\mydata.mdb with no passwords.

+------------------------------------------------+
| Luc Saint-Elie                                 |
| 53, rue Caulaincourt                           |
| 75018  Paris France                            |
| Tel: 01 42 52 09 62 / 06 12 90 19 65           |
| email : [EMAIL PROTECTED]                    |
+------------------------------------------------+
| Servlet Taverne a site devoted to servlets     |
| ..and Java server side technologies            |
|           ATTENTION NEW URL !!!                |
| url : http://www.interpasnet.com/JSS           |
+------------------------------------------------+

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JSP-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to