Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Connecting to sql(Need Help Very Fast)

Author  Topic 

samee
Starting Member

15 Posts

Posted - 2005-02-17 : 00:48:16
Hi all
This is my java program
/////////////////////////////////
class Test1{
Test1(){
try{
System.out.println("Driver");
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver");
System.out.println("Connect");
Connection conn=DriverManager.getConnection("jdbc:microsoft:sqlserver://D86FSC1S:1434;user=stromme;password=stromme");
System.out.println("Done");
}
catch(Exception e){
System.out.println("Error is "+e);
}
}
public static void main(String [] a){
Test1 t=new Test1();
}
}
/////////////////////////////////
And this the error I am getting
///////////////////////////
C:\Java\test>java Test1
Driver
Connect
Error is java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error
establishing socket.

C:\Java\test>
////////////////////////////
Any one places help me
I need it fast
Sorry I fogot to say this

Connection conn=DriverManager.getConnection("jdbc:microsoft:sqlserver://D86FSC1S:1433;user=stromme;password=stromme");

D86FSC1S
I have used the text show below in the place where I have bold and italic text or I have tried it replacing D86FSC1S with these
localhost, ipaddress of my pc,

Thanks You


JKNIGHT

ditch
Master Smack Fu Yak Hacker

1466 Posts

Posted - 2005-02-17 : 02:36:18
I don't know java - but maybe www.connectionstrings.com
can help you?


Duane.
Go to Top of Page
   

- Advertisement -