Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Nov 3rd, 2005, 8:03 AM   #1
Dark Flare Knight
Hobbyist Programmer
 
Join Date: Mar 2005
Location: Canada
Posts: 113
Rep Power: 4 Dark Flare Knight is on a distinguished road
Jdbc

can someone give me examples, and explain how i can connect to an ms access database to read and write data to it?

i did some research and found out that jdbc is used to connect and read and write data to it.
Dark Flare Knight is offline   Reply With Quote
Old Nov 6th, 2005, 12:47 PM   #2
TeamElement1
Newbie
 
TeamElement1's Avatar
 
Join Date: Oct 2005
Posts: 8
Rep Power: 0 TeamElement1 is on a distinguished road
String dbUser = "username";
	String dbPassword = "password";
	Connection con;
	Statement stmt;
	

	private void login()throws SQLException, ClassNotFoundException{
		String url = "jdbc:oracle:thin:@xxxx:port:csodb";
		Class.forName("oracle.jdbc.driver.OracleDriver");
		con = DriverManager.getConnection(url, dbUser, dbPassword);
		}
TeamElement1 is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 2:43 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC