Stored proc timeout issue
- From: "Jeremy" <jeremy-nospam@xxxxxxxxxxxxxx>
- Date: Sat, 27 Oct 2007 17:32:22 -0700
[reposted from sqlservers]
I have a stored proc that deletes certain records in half a dozen tables,
one table after another, in a D7 app. The sp creates a temp table at the
beginning with IDs of the records to be deleted. Ado, ms sql server 2k5.
The program Opens the proc and times out after 2 minutes. When I run the
proc from sql server mgmt studio, it completes in 11 seconds.
I've stepped carefully through the code, looking for where the pgm might be
opening something and not letting go. Nothing. I set a breakpoint just
before Open, and examine sqlms for any process with a lock, obviously
expecting to find my program. Nothing. No apparent reason for this proc to
timeout in one case and not in another.
So obviously I've got a case of Programmer's Block. Can anyone suggest
something to get the neurons firing again?
Jeremy
.
- Follow-Ups:
- Re: Stored proc timeout issue
- From: Jeremy
- Re: Stored proc timeout issue
- Prev by Date: Re: Formatting output of TDBEdit
- Next by Date: Re: Access SQL Server Express over the Internet
- Previous by thread: Formatting output of TDBEdit
- Next by thread: Re: Stored proc timeout issue
- Index(es):
Relevant Pages
|