• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

connection

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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```````
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't understand your question, what is it you are asking?
 
Ranch Hand
Posts: 45
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 49
Java ME PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ME PHP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic