Skip to Main Content

Java Database Connectivity (JDBC)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Sql Exception: Timeout expired...pl help!

843853Sep 20 2001 — edited Sep 21 2001
Hi all,
I've got a program with a conexion to a sql server 2000 DB. The problem is that the first time I run the program I get always a SqlException, but if I run again everithing goes fine.
C:\java>java IntegraFicheiros
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Timeout expired
        at sun.jdbc.odbc.JdbcOdbc.createSQLException(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbc.standardError(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbc.SQLDriverConnect(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcConnection.initialize(Unknown Source)
        at sun.jdbc.odbc.JdbcOdbcDriver.connect(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at java.sql.DriverManager.getConnection(Unknown Source)
        at IntegraFicheiros.main(IntegraFicheiros.java:47)

C:\java>java IntegraFicheiros

C:\java>
How can I "erase" this exception?
Any help will be great...

A. Santos
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 19 2001
Added on Sep 20 2001
10 comments
856 views