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,