Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

connect JDBC with MS Sql2k,but failed

 
huanyu zhao
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

what`s wrong with them?
i have make the path or classpath correctly.
i guess maybe the url is wrong?
[ June 21, 2003: Message edited by: huanyu zhao ]
[ June 21, 2003: Message edited by: huanyu zhao ]
 
huanyu zhao
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the result is showed below

[ June 21, 2003: Message edited by: huanyu zhao ]
[ June 21, 2003: Message edited by: huanyu zhao ]
 
Philip Shanks
Ranch Hand
Posts: 189
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
First: I don't see the SQLServer driver in the classpath.
Second: the jdbc URL doesn't point to a specific database (I don't know if this is necessary)
Third: stop using the direct calls to a specific Driver. Use a DataSource object instead to get your Connection object.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic