Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Connection of JDBC to SQL Server 2000

843854Sep 18 2003 — edited Sep 19 2003
How can i connect jdbc to sql server 2000? i hv some problem of running these code.

// Get connection
DriverManager.registerDriver(new
com.microsoft.jdbc.sqlserver.SQLServerDriver());
Connection connection = DriverManager.getConnection(
"jdbc:microsoft:sqlserver://<Host>:1433",<"UID>","<PWD>");

wat the meaning of
"jdbc:microsoft:sqlserver://<Host>:1433",<"UID>","<PWD>");

after running i got the error of **package com.microsoft.jdbc.sqlserver does not exist**

Can you explain wats the errors? Thanks.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 17 2003
Added on Sep 18 2003
3 comments
68 views