• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error establising connection  RSS feed

 
Graham Thorpe
Ranch Hand
Posts: 265
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all Everybody

When i run this program the foloowing error is shwoing "Error establishing socket"
Java with Sqlserver
import java.io.*;
import java.text.*;
import java.util.*;
import java.sql.*;
public class uu{
public static void main(String ll[]) {
try{
DriverManager.registerDriver(new com.microsoft.jdbc.sqlserver.SQLServerDriver());
Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://SRIDHAR:1433","sa","");
}
}
 
ersin eser
Ranch Hand
Posts: 1072
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
glkrrr
Please read the Javaranch Naming Policy and change your publicly displayed name to comply with our unique rule. Thank you for your cooperation.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!