Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2007

Tip: Looking for answers? Try searching our database.

Hooking up jdbc to a local access database

Thread view: 
KNelson - 04 Mar 2007 23:46 GMT
The driver I am using, the default jdbc/odbc driver, in netbeans is
not working for connecting to an access db on my hard drive.  The
driver does find the database, and connects to it, but when I set it
up I get a "unable to obtain schema" warning.  then on the icon for
the database after im connected in netbeans, the link to the tables is
broken.  Thanks

Karl Nelson
CodeForTea@gmail.com - 05 Mar 2007 00:09 GMT
> The driver I am using, the default jdbc/odbc driver, in netbeans is
> not working for connecting to an access db on my hard drive.  The
[quoted text clipped - 4 lines]
>
> Karl Nelson

1.    Control Panel
2.    Administrative Tools
3.    Data Sources (ODBC)
4.    System DSN  Tab
5.    Add
6.    Microsoft Access Drive (*.mdb)
7.    Data Source Name ( add Data source name  dont put any spaces.)
8.    Click on select button  Browse and find your database files.
9.    Ok
10.    ok

String url = "jdbc:odbc:xxxxx"   database name from step 7.
Connection con = DriverManager.getConnection(url, "myLogin",
"myPassword");
KNelson - 05 Mar 2007 00:50 GMT
On Mar 4, 4:09 pm, CodeFor...@gmail.com wrote:

> > The driver I am using, the default jdbc/odbc driver, in netbeans is
> > not working for connecting to an access db on my hard drive.  The
[quoted text clipped - 19 lines]
> Connection con = DriverManager.getConnection(url, "myLogin",
> "myPassword");

Thanks bud but I actually do have a correct odbc connection set up
already.  If you know what it may be besides that im all ears


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.