| 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!
|
 |
 |
|
|
subject: connect JDBC with MS Sql2k,but failed
|
|
|