File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes How to connect to SQL Server 2000 ? please help !!! Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Bookmark "How to connect to SQL Server 2000 ? please help !!!" Watch "How to connect to SQL Server 2000 ? please help !!!" New topic
Author

How to connect to SQL Server 2000 ? please help !!!

Imran Ahmed Khan
Greenhorn

Joined: May 01, 2002
Posts: 5
hi,
I am trying to connect SQL Server 2000 with JDBC for the first time, and i dont know what to pass in the connetion URL when using DriverManager.getConnection
here is the code:
Class.forName"com.microsoft.jdbc.sqlserver.SQLServerDriver");
Connection conn = DriverManager.getConnection("") ???
i dont know what to put in the connection URL , can any body help me?
[ July 11, 2002: Message edited by: Imran Ahmed Khan ]

SCJP2 , SCWCD
Rene Larsen
Ranch Hand

Joined: Oct 12, 2001
Posts: 1179


/Rene


Regards, Rene Larsen
Dropbox Invite
 
wood burning stoves
 
subject: How to connect to SQL Server 2000 ? please help !!!