Wrox Programmer Forums
|
SQL Server 2000 General discussion of Microsoft SQL Server -- for topics that don't fit in one of the more specific SQL Server forums. version 2000 only. There's a new forum for SQL Server 2005.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Server 2000 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 22nd, 2006, 01:32 AM
Registered User
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default java.sql.SQLException

HI,


I have one error in jsp-jdbc .Here i use two query, one select query and one update query.The error is,
java.sql.SQLException: [Microsoft][ODBC SQL Server Driver]Connection is busy with results for another hstmt .

Anybody can you help to rectify that problem.Urgently i need.
Thank you

 
Old March 22nd, 2006, 08:57 AM
Authorized User
 
Join Date: Mar 2006
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi!

SQL Server only supports a single active statement per connection. Make sure that one statement is closed before next one.

So, If you are trying to use multiple statements per connection then you need to use multiple connections for that purpose.

I am well known of ODBC related problem, but, JDBC is not well known. This problem comes with Forward-only cursors in ODBC.
Forward-only cursors don't support multiple concurrent active statements because SQL Server returns the default result set when a cursor is set to forward-only. This result set must be processed before another statement can be issued, which limits the client to one active SQL statement at a time.

Finally, I can say, you should close one statement before you start with other.

If this helped you, don't forget to reply.









Similar Threads
Thread Thread Starter Forum Replies Last Post
java.sql.SQLException: Column 'somenam' not found. gargon1 JSP Basics 3 August 5th, 2005 12:35 PM
java.sql.SQLException: Invalid column type Che Guevara Java Databases 1 July 1st, 2005 07:39 AM
java.sql.SQLException: Invalid argument(s) in call dharmendra_rh Java Databases 1 May 5th, 2005 02:58 AM
java.sql.SQLException: [Microsoft][ODBC Driver Man [email protected] Java Databases 1 May 5th, 2005 02:40 AM
java.sql.SQLException: Error loading JDBC Driver jdphjp Java Databases 1 August 5th, 2004 12:46 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.