Connecting to MS SQL problems
From: yelp666 (yelp666.16iso1_at_mail.codecomments.com)
Date: 05/19/04
- Next message: pratap: "Configuring Tomcat container to access remote MySql DB on Solaris"
- Previous message: Paul Schmidt: "Re: Classes looking after themselves"
- Next in thread: Luke Webber: "Re: Connecting to MS SQL problems"
- Reply: Luke Webber: "Re: Connecting to MS SQL problems"
- Reply: kaeli: "Re: Connecting to MS SQL problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Wed, 19 May 2004 14:40:09 -0500
Hi all,
I am trying to connect to MS SQL Server installed on my computer, I
follow the tutorial, that can be downloaded from sun's web page, but it
doesn't work. Whatever I try, I get the seme error:
ODBC Driver Menager: Unable to locate the name of data origin, and
there are no default drivers.
My code:
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
String url = "jdbc:odbc:Northwind";
java.sql.Connection con = java.sql.DriverManager.getConnection(url,
"test", "krowa");
I appreciate any help.
-- yelp666 ------------------------------------------------------------------------ Posted via http://www.codecomments.com ------------------------------------------------------------------------
- Next message: pratap: "Configuring Tomcat container to access remote MySql DB on Solaris"
- Previous message: Paul Schmidt: "Re: Classes looking after themselves"
- Next in thread: Luke Webber: "Re: Connecting to MS SQL problems"
- Reply: Luke Webber: "Re: Connecting to MS SQL problems"
- Reply: kaeli: "Re: Connecting to MS SQL problems"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]