This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes JDBC and the fly likes database errror Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "database errror" Watch "database errror" New topic
Author

database errror

shirish jaiswal
Greenhorn

Joined: Apr 05, 2007
Posts: 1
well i m getting the following error n still not able to find out what the error..
i have tried everthing thts possible by takin new statement n resultset..
but still


java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Object has bee
n closed.
at com.microsoft.jdbc.base.BaseExceptions.createException(Unknown Source
)
at com.microsoft.jdbc.base.BaseExceptions.getException(Unknown Source)
at com.microsoft.jdbc.base.BaseConnection.validateClosedState(Unknown So
urce)
at com.microsoft.jdbc.base.BaseConnection.createStatement(Unknown Source
)
at com.microsoft.jdbc.base.BaseConnection.createStatement(Unknown Source
)
Muhammad Saifuddin
Ranch Hand

Joined: Dec 06, 2005
Posts: 1321

Originally posted by shirish jaiswal:
still not able to find out what the error..


welcome to Javaranch,

this is what the error says:
java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Object has been closed.


could you share your code snippet. it helps us to find out the problem or the Object.


Saifuddin..
[Blog][Linkedin] How To Ask Questions On JavaRanch My OpenSource
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: database errror