Win a copy of Spring in Action (5th edition) this week in the Spring forum!
  • 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
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

JDBC Connectivity in Servlets  RSS feed

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When I tried to connect to access database with servlets...using jdbc.. I am getting a "General Error" exception for the statement


where con is connection object....the msdsn is the system dsn name which refers to the StudentDatabase.mdb database..

please help me in this regard

[ August 11, 2008: Message edited by: Raghavender Ammagari ]
[ August 11, 2008: Message edited by: Raghavender Ammagari ]
 
Bartender
Posts: 3648
16
Firefox Browser Java Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
check this out MS JDBC
 
Ranch Hand
Posts: 1085
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you load the driver?



Thanks,
Shailesh
 
Sheriff
Posts: 23867
50
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What Shailesh posted is NOT the correct class name for the JDBC-ODBC driver. It looks like it might have been the correct class name for some Microsoft driver a long time ago.

Anyway, try not putting a space in the middle of your URL where it doesn't belong.
 
Shailesh Chandra
Ranch Hand
Posts: 1085
Java Oracle Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Originally posted by Paul Clapham:
What Shailesh posted is NOT the correct class name for the JDBC-ODBC driver.




right, I just wanted to remind poster to load the class, so copied an old code from my repositoy. Thanks for reminding
 
You firghten me terribly. I would like to go home now. Here, take this tiny ad:
Download Free Java APIs to Work with Office Files and PDF
htttp://www.e-iceblue.com/free-apis.html
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!