NetBeans Forums

 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
  

Connection to MS Access 2010

 
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users
View previous topic :: View next topic  
Author Message
flash00



Joined: 27 Mar 2013
Posts: 1

PostPosted: Wed Mar 27, 2013 5:31 pm    Post subject: Connection to MS Access 2010 Reply with quote

Please help me I´m trying to connect my ms access database database11.mdb to netbeans
This is the code:
try{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection conn = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Access Driver(*.mdb)}; DBO=Database11.mdb");

}
catch(SQLException e){
e.printStackTrace();
But i get the error:
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver
i copied the db into the project folder but nothing works
please help me :(
Back to top
Display posts from previous:   
Post new topic   Reply to topic    NetBeans Forums -> NetBeans Users All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB
By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo