• 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
  • Bear Bibeault
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Devaka Cooray
  • Junilu Lacar
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Ron McLeod
  • Tim Holloway
  • Claude Moore
  • Stephan van Hulst
Bartenders:
  • Winston Gutkowski
  • Carey Brown
  • Frits Walraven

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
 
Marshal
Posts: 24178
54
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!