Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
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
Register / Login


JavaRanch » Java Forums » Databases » JDBC
Reply 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to connect to SQL Server 2000 ? please help !!!
 
Similar Threads
working with JSTL Problem....
a q about SQL Server 2005 DB and Java
Error Establishing Socket
HELP please with SQL Server
Login failure Microsoft Sqlserver 2000