• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:

jsp database

 
Ranch Hand
Posts: 65
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi, I have this simple program to access a database in Microsoft SQL Server 2000, the database that i am trying to access is Northwind.
But, when i execute the .jsp i get this error:

java.sql.SQLException: [Microsoft] database not found and no driver was specified.
at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at desisoft_jsp_ch16_01_jsp1179415463593._jspService(desisoft_jsp_ch16_01_jsp1179415463593.java:52)
at desisoft.server.JspBaseClass.service(JspBaseClass.java:48)
at desisoft.server.servlets.Servlet.service(Servlet.java:86)

what am I doing wrong?
thanks for any response...

the code:
ch16_01.jsp
reply
    Bookmark Topic Watch Topic
  • New Topic