HighTechTalks DotNet Forums  

Problems with java.sql in J#

Dotnet VJSharp microsoft.public.dotnet.vjsharp


Discuss Problems with java.sql in J# in the Dotnet VJSharp forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Cpierswim
 
Posts: n/a

Default Problems with java.sql in J# - 03-19-2005 , 02:05 PM






I need to stick to regular java code in this program I'm making and I'm
having trouble using the java.sql package. This is what this problem is:

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")
- Gives me a Class Not Found Exception.
String url = "jdbcdbcRIVER={Microsoft Access Driver
(*.mdb)};DBQ=c:\\Time Site\\Time_Site_Database.mdb";
Connection con = DriverManager.getConnection(url);

Any ideas on how I can get this to work? (Specifically the Class.forName?)

Reply With Quote
  #2  
Old   
Cpierswim
 
Posts: n/a

Default RE: Problems with java.sql in J# - 03-19-2005 , 04:11 PM






Nevermind - I figured out the Class.forname problem.

Now I'm having problem with the String url =

Gives me an SQL error. I'm trying to figure it out, but haven't yet. What
would be the correct URL to connect to an Access database at that C:\
location?

"Cpierswim" wrote:

Quote:
I need to stick to regular java code in this program I'm making and I'm
having trouble using the java.sql package. This is what this problem is:

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")
- Gives me a Class Not Found Exception.
String url = "jdbcdbcRIVER={Microsoft Access Driver
(*.mdb)};DBQ=c:\\Time Site\\Time_Site_Database.mdb";
Connection con = DriverManager.getConnection(url);

Any ideas on how I can get this to work? (Specifically the Class.forName?)

Reply With Quote
  #3  
Old   
Cpierswim
 
Posts: n/a

Default RE: Problems with java.sql in J# - 03-19-2005 , 04:21 PM



Ok - Nevermind. I figured out both problems. My database wasn't located
where I told the driver - duh. Lol

"Cpierswim" wrote:

Quote:
I need to stick to regular java code in this program I'm making and I'm
having trouble using the java.sql package. This is what this problem is:

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver")
- Gives me a Class Not Found Exception.
String url = "jdbcdbcRIVER={Microsoft Access Driver
(*.mdb)};DBQ=c:\\Time Site\\Time_Site_Database.mdb";
Connection con = DriverManager.getConnection(url);

Any ideas on how I can get this to work? (Specifically the Class.forName?)

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.