Hey Ash,

Check the documentation of the driver which you are using. The url is different for 
different drivers. Below are the two examples which I have used earlier in projects:-

jdbc:microsoft:sqlserver://Simple2SVR:1433 for SQLServerDriver

jdbc:JSQLConnect://Simple2SVR:1433 for JSQLDriver

-----Original Message-----
From: Shahata, Ash [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, July 23, 2002 2:02 PM
To: [EMAIL PROTECTED]
Subject: jdbc url for sqlServer


Hi all,
does anyone know what would the jdbc url value be if I'm using Microsoft Sql
Server? I want to use opta2000 as the jdbc driver. I already have a
connection with mySQL :

try{
        Class.forName("org.gjt.mm.mysql.Driver").newInstance();
        con = DriverManager.getConnection("jdbc:mysql://localhost/test
?user=name&password=pass");
        ..
        ..
}

I want to find out which values would I use with forName and getConnection
if I'm using the opta2000 driver to connect to sql Server?

Thanks
Ash

===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

==========================================================================To 
unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:

 http://archives.java.sun.com/jsp-interest.html
 http://java.sun.com/products/jsp/faq.html
 http://www.esperanto.org.nz/jsp/jspfaq.jsp
 http://www.jguru.com/faq/index.jsp
 http://www.jspinsider.com

Reply via email to