File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

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", "");
props.put("port", "1433");
Driver myDriver = (Driver)

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,
eption: TdsInputStream.readFully - len 149 Unable to connect, please check your
server's version and availability.
at weblogic.jdbcbase.mssqlserver4.TdsStatement.microsoftLogin(TdsStateme
at weblogic.jdbc.mssqlserver4.MicrosoftConnection.beginLogin(MicrosoftCo
but my mssql server is up and running and im connecting to it by isqlw
I agree. Here's the link:
subject: URGENT cannot connect to mssql DB
It's not a secret anymore!