Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

SQLServerException

 
   Database Help (Home) -> JDBC Driver RSS
Next:  Error message on Full Population  
Author Message
kdenning

External


Since: Aug 04, 2008
Posts: 1



(Msg. 1) Posted: Mon Aug 04, 2008 2:53 pm
Post subject: SQLServerException
Archived from groups: microsoft>public>sqlserver>jdbcdriver (more info?)

I am getting a SQLServerException:The statement must be executed before any
results can be obtained. The statement must be executed before any results
can be obtained. randomly when doing an insert of a table and needing back
the IDENTITY field. It seems to be when server is under load. I have been
trying to track down the conditions on when this error gets thrown. Any
ideas??

Thx!

 >> Stay informed about: SQLServerException 
Back to top
Login to vote
joe.weinstein

External


Since: Feb 02, 2008
Posts: 15



(Msg. 2) Posted: Tue Aug 05, 2008 10:32 am
Post subject: Re: SQLServerException [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

On Aug 4, 2:53 pm, kdenning
wrote:
> I am getting a SQLServerException:The statement must be executed before any
> results can be obtained. The statement must be executed before any results
> can be obtained. randomly when doing an insert of a table and needing back
> the IDENTITY field. It seems to be when server is under load. I have been
> trying to track down the conditions on when this error gets thrown. Any
> ideas??
>
> Thx!

What's the chance you're using the executeQuery() call to do a non-
query,
such as an update/insert/delete? Is your code being run in a
multithreaded
environment, with the chance that multiple threads may be stepping on
each other's JDBC objects? Is the statement variable being
overwritten?
Joe Weinstein at Oracle

 >> Stay informed about: SQLServerException 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
SQLServerException: The server failed to resume the transa.. - Hi All, I have a block of code that does the following: 1. Call Stored Procedure A which internally: a. Opens a transaction b. Does work c. Closes the transaction 2. Calls Stored Procedure B When it runs it gives the following error: ..

com.microsoft.sqlserver.jdbc.SQLServerException: Invalid O.. - we are trying to fetch records using the select statement from the SQL Server 2005 Server using the jdbc driver 1.2 . but when the batch is executed, getting the error ".com.microsoft.sqlserver.jdbc.SQLServerException: Invalid object name"....

MDX and JDBC Driver - Hi all, Anybody know if it possible to connect to an as2000 database and run mdx queries using the microsoft jdbc drivers? thanks, Peter

java.sql.SQLException: [Microsoft][SQLServer JDBC Driver]U.. - Folks, I was getting this exception occasionally and tracked in down to the application server C drive being full. Looks like the drivers are writing to logs (event ?) on this drive. Freeing up space removed the problem. Hope this helps someone. ..

JDBC driver doesn't close socket event after connection.cl.. - Hi I have a Java application (on Red Hat Enterprise) that <font color=purple> ; 1) connects every 10 seconds to an MS/SQL database</font> <font color=purple> ; 2) attempts to get the metadata for a specific table</fo...
   Database Help (Home) -> JDBC Driver All times are: Pacific Time (US & Canada)
Page 1 of 1

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]