• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

connection

 
Greenhorn
Posts: 2
  • 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```````
 
Bartender
Posts: 10336
Hibernate Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
 
He was giving me directions and I was powerless to resist. I cannot resist this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic