954,518 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Ms Access connection through wizard

hi,
i am useing the netbeans for the first time n i am trying to connect to a MS Access DB through the wizard but i am
not able to.

I entered for a DSNless connection:
Name:JDBC-ODBC Bridge.
Driver: sun.jdbc.odbc.JdbcOdbcDriver
Database URL: jdbc:odbc: Driver={Microsoft Access Driver (.*mdb)};dbq=C:\Users\Vamsi\Documents\PIN.mdb;


the issue its giving is: Unable to add connection. Cannot establish a connection to :jdbc:odbc: Driver={Microsoft
Access Driver (.*mdb)};dbq=C:\Users\Vamsi\Documents\PIN.mdb; Using sun.jdbc.odbc.JdbcOdbcDriver[Microsoft][ODBC Driver
Manager]datasource name not found or no default driver specified)

for a connectionwith DSN:
i entered the same deails except for the URL i gane the name of DB-i.e PIN
I have also created a System DSN of the name PIN.mdb in the Contol panel > Administrative tools > Data sources(ODBC).
but its giving the error of cannot retrive the schema.
i am not able to determine whats the default Uid and pwd for an Access DB.

please help me if i am missing something or hve done something wrong.

sandhya_r
Newbie Poster
2 posts since Apr 2009
Reputation Points: 10
Solved Threads: 0
 

hi, i am useing the netbeans for the first time n i am trying to connect to a MS Access DB through the wizard but i am not able to.

I entered for a DSNless connection: Name:JDBC-ODBC Bridge. Driver: sun.jdbc.odbc.JdbcOdbcDriver Database URL: jdbc:odbc: Driver={Microsoft Access Driver (.*mdb)};dbq=C:\Users\Vamsi\Documents\PIN.mdb;

the issue its giving is: Unable to add connection. Cannot establish a connection to :jdbc:odbc: Driver={Microsoft Access Driver (.*mdb)};dbq=C:\Users\Vamsi\Documents\PIN.mdb; Using sun.jdbc.odbc.JdbcOdbcDriver[Microsoft][ODBC Driver Manager]datasource name not found or no default driver specified)

for a connectionwith DSN: i entered the same deails except for the URL i gane the name of DB-i.e PIN I have also created a System DSN of the name PIN.mdb in the Contol panel > Administrative tools > Data sources(ODBC). but its giving the error of cannot retrive the schema. i am not able to determine whats the default Uid and pwd for an Access DB.

please help me if i am missing something or hve done something wrong.

Hey Sandhya,

Im not sure about NetBeans because i never tried it.

About connecting to MS Access using DSN. Then the default username and password is blank, But if you want there should be some username and password then you can set it by clicking "Advance" button while creating the DSN.

Regards,

puneetkay
Junior Poster
122 posts since Nov 2007
Reputation Points: 51
Solved Threads: 24
 

Hey Sandhya,

Im not sure about NetBeans because i never tried it.

About connecting to MS Access using DSN. Then the default username and password is blank, But if you want there should be some username and password then you can set it by clicking "Advance" button while creating the DSN.

Regards,

hey thanx for the reply but i tried with blank fields but the same problem of cannot recover scheemas is still occuring.

no difference there

sandhya_r
Newbie Poster
2 posts since Apr 2009
Reputation Points: 10
Solved Threads: 0
 

Dear,

Solution of your problem is depend upong following settings:
Create DSN (System DSN) - Control Panel +Administrative Tools + ODBC Data Source + System DSN.
Set Default Authorization for MS-Access database while creating DSN.
Default Username is Admin and password is Blank (No password). You may set database password using Ms-Access Menu Item.

__avd
Posting Genius (adatapost)
Moderator
8,648 posts since Oct 2008
Reputation Points: 2,136
Solved Threads: 1,241
 

This question has already been solved

Post: Markdown Syntax: Formatting Help
You