• 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 Problem With SqlServer 2000 using Microsoft jdbc Driver

 
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Everybody,
I am getting the below exception when i am trying out to execute the program that just connects sql server 2000 using java. I wish somebody help me solve the problem.


java.lang.ClassNotFoundException:com.microsoft.jdbc.sqlserver.SQLServerDrive


Thank You
Kiran
 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Download the SQL server driver JARs and add them to the runtime classpath.
 
kiran mohan
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thank You Annie, I have done as said and it worked out fine. Thank you once again
bye take care
kiran
 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello everybody.I have a problem.I have connection problem with sqlserver2000 using Mirosoft jdbc Driver in XP operation System.But I got the problem:java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.
Could you tell me what's wrong?Thank you in advance
 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Yi,
Are you able to connect to SQL Server from the command line (aka not through Java)

Welcome to JavaRanch! For the future, note that since this is a new question it is ok to start a new thread.

Jeanne
JDBC Forum Bartender
 
reply
    Bookmark Topic Watch Topic
  • New Topic