File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JDBC and Relational Databases and the fly likes connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "connection" Watch "connection" New topic


chen zhikai

Joined: Jun 09, 2011
Posts: 2
hello,i will be very thankful if you can let me see the total code about this:

com.model.DBConnection dbconn = new com.model.DBConnection();

Looking forward to your answering!!
Tank you!!

As you can see,i am a student```````
Paul Sturrock

Joined: Apr 14, 2004
Posts: 10336

I don't understand your question, what is it you are asking?

JavaRanch FAQ HowToAskQuestionsOnJavaRanch
prathamesh bandivadekar
Ranch Hand

Joined: May 22, 2008
Posts: 43
I think you are trying to creat a connection object.

But this does not seems like a JDBC API.

Becoz in JDBC API you can not directly create the connection.

To create a connection you have to have Driver Object(java.sql.Driver) or DriverManager (java.sql.DriverManager) which ultimately gives you Driver Object.

I Hope this clrifies a bit.

Prathamesh M.B.<br />Java....only.....
deca leni
Ranch Hand

Joined: Jun 18, 2011
Posts: 49

in JDBC this is how we crete a conection... this just a example for MS access data base..

Do or die...?? No, Do before you die... || (SCJP .6)
deca leni
Ranch Hand

Joined: Jun 18, 2011
Posts: 49

if you don't know how to create Database to access with jdbc.odbc then this is how we can create it in windows PC

ODBC Settings -----------------------------------------------------------------------

step 1 : click control panel
step 2 : click Administrative Tools
step 3 : click Data Sources (ODBC) icon
step 4 : click system DSN tab
step 5 : click ADD Button , Select Microsoft Access Driver , Finish
step 6 : fill form and click CREATE button
I agree. Here's the link:
subject: connection
jQuery in Action, 3rd edition