•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Java section within the Software Development category of DaniWeb, a massive community of 455,969 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,760 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Java advertiser: Lunarpages Java Web Hosting
Views: 4306 | Replies: 4
![]() |
•
•
Join Date: Feb 2007
Posts: 3
Reputation:
Rep Power: 0
Solved Threads: 1
to connect ms access with java
you have to datasource name
and write this code in ur program
Connection con=null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc
SN name");
Statement stmt=con.createStatment();
ResultSet rs=stmt.executeQuery("select * from tablename");
while(rs.next())
{
System.out.println(rs.getSting("username"); //here username is the field name
}
you have to datasource name
and write this code in ur program
Connection con=null;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con=DriverManager.getConnection("jdbc:odbc
SN name");Statement stmt=con.createStatment();
ResultSet rs=stmt.executeQuery("select * from tablename");
while(rs.next())
{
System.out.println(rs.getSting("username"); //here username is the field name
}
![]() |
•
•
•
•
•
•
•
•
DaniWeb Java Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
access avatar backup breach code com combo daniweb data data protection database design development dropdownlist government hacker ibm ip java medicine microshaft microsoft microsoft sdk for java microsystems module ms net news normalization open platform programming reuse security server software source sql sun survey web
- How to connect MSAccess database in ASP.NET (C#)
- How to connect Oracle database from JSP page (Java)
- java database connectivityl (Java)
- How to generate SQL database to MS Access (MS Access and FileMaker Pro)
- how to connect oracle 8i database with jsp page (JSP)
- need your help with database access (Visual Basic 4 / 5 / 6)
- Database access with Java platform (MS Access and FileMaker Pro)
- shortcut on client to connect to remote database filemaker (MS Access and FileMaker Pro)
- database access is getting slow day by day (MySQL)
- Writing to an Access Database using Java... (Java)
Other Threads in the Java Forum
- Previous Thread: Hello JavaGuys/Ladies! Panel Layers being funny...
- Next Thread: Java Programming with arrays



Linear Mode