This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!