• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connection

 
chen zhikai
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Bartender
Posts: 10336
Eclipse IDE Hibernate Java
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't understand your question, what is it you are asking?
 
prathamesh bandivadekar
Ranch Hand
Posts: 43
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
deca leni
Ranch Hand
Posts: 49
Java Java ME PHP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in JDBC this is how we crete a conection... this just a example for MS access data base..


 
deca leni
Ranch Hand
Posts: 49
Java Java ME PHP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic