aspose file tools
The moose likes JDBC and the fly likes connect JDBC with MS Sql2k,but failed Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "connect JDBC with MS Sql2k,but failed" Watch "connect JDBC with MS Sql2k,but failed" New topic
Author

connect JDBC with MS Sql2k,but failed

huanyu zhao
Greenhorn

Joined: Feb 22, 2001
Posts: 29

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 ]

[img]http://www.flyheart.com/bbs/attach/2002/11/07/59790-signature-embed.jpg[/img]
huanyu zhao
Greenhorn

Joined: Feb 22, 2001
Posts: 29
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

Joined: Oct 15, 2002
Posts: 189
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.


Philip Shanks, SCJP - Castro Valley, CA
My boss never outsources or has lay-offs, and He's always hiring. I work for Jesus! Prepare your resume!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: connect JDBC with MS Sql2k,but failed
 
Similar Threads
no active Connection...jdbc newbie
Connection Through JDBC
connect to SQLServer Database in XP?
unable to connect to MS SQL server 2000
ClassNotFoundException