my dog learned polymorphism*
The moose likes Servlets and the fly likes URGENT cannot connect to mssql DB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "URGENT cannot connect to mssql DB" Watch "URGENT cannot connect to mssql DB" New topic
Author

URGENT cannot connect to mssql DB

mou haj
Ranch Hand

Joined: Sep 12, 2001
Posts: 81
My code goes some what like this
******************************
try {

Properties props = new Properties();
props.put("user", "ofs_log");
props.put("password", "ofs_log");
props.put("db", "faxsvr");
props.put("server", "161.75.29.12");
props.put("port", "1433");
Driver myDriver = (Driver)


Class.forName("weblogic.jdbc.mssqlserver4.Driver").newInstance();
Connection conn = myDriver.connect("jdbc:weblogic:mssqlserver4", props);
******************************
but im getting I/O exception
--------------------------
java.sql.SQLException: I/O exception while talking to the server, java.io.EOFExc
eption: TdsInputStream.readFully - len 149 Unable to connect, please check your
server's version and availability.
at weblogic.jdbcbase.mssqlserver4.TdsStatement.microsoftLogin(TdsStateme
nt.java:2782)
at weblogic.jdbc.mssqlserver4.MicrosoftConnection.beginLogin(MicrosoftCo
-----------------------------------
but my mssql server is up and running and im connecting to it by isqlw
PLEASE PLEASE HELP VERY VERY URGENT (
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URGENT cannot connect to mssql DB