Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Imran Ahmed Khan
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Rene Larsen
Ranch Hand
Posts: 1179
Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

/Rene
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic