| 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 (
|
 |
 |
|
|
subject: URGENT cannot connect to mssql DB
|
|
|