Advertisement

03.13.2008 at 09:08AM PDT, ID: 23239036
[x]
Attachment Details

Frequent SQL Cursor and Deadlocks causing IIS Application Pool to hang

Asked by alexk23 in MS SQL Server, SQL Server 2005

Tags: MS, SQL Server, 2005

Normally our application runs with an occasional deadlock here and there, maybe a cursor error, but recently with the release of some newer code we saw a spike in the amount of deadlocks and internal cursor errors to the point where eventually all the worker threads in the IIS application pool were deadlocked and awaiting some sort of a response from the db, disallowing anyone from accessing the application on that particular server.

The particular sql errors that we saw were :

Transaction (Process ID X) was deadlocked on lock resources with another process and has been chosen as the deadlock victim. Rerun the transaction

and a happening a lot more freqently :

Could not complete cursor operation because the table schema changed after the cursor was declared.

Now both of these errors occur at seamingly random places through our code and we cannot pin point an offending sql statement or something that we regularly use that would cause these errors.

We are running the latest service pack of sql server 2005, with all the hotfixes, so I do not think its a bug in sql server, rather a bug in our code or something we are doing wrong

If anyone had any similar experiences with this please shed some lightStart Free Trial
 
Keywords: Frequent SQL Cursor and Deadlocks c…
 
Loading Advertisement...
 
[+][-]03.13.2008 at 09:15AM PDT, ID: 21117749

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 09:26AM PDT, ID: 21117891

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 11:04AM PDT, ID: 21118975

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 11:05AM PDT, ID: 21118978

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 11:08AM PDT, ID: 21119014

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 12:38PM PDT, ID: 21120031

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 12:44PM PDT, ID: 21120095

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL Server, SQL Server 2005
Tags: MS, SQL Server, 2005
Sign Up Now!
Solution Provided By: chapmandew
Participating Experts: 2
Solution Grade: A
 
 
[+][-]05.06.2008 at 01:14PM PDT, ID: 21510637

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]05.06.2008 at 01:16PM PDT, ID: 21510662

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.23.2008 at 05:33AM PDT, ID: 21845446

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
[+][-]06.27.2008 at 06:53PM PDT, ID: 21888806

Experts Exchange has a courteous staff of administrators who help members get the most out of the website by means of administrative comments like this one.

Start your 7-day free trial to view this Administrative Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628