slowing/halting stored procedure from ado.net
- From: MarcelG <MarcelG@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 15 Apr 2008 04:41:01 -0700
Hi,
I've strange problem with an application developed with VB.NET 2008/ADO.NET
framework target 2.0 and SQL Server 2005.
Sometimes a certain stored procedure wich normally executes in seconds,
suddenly takes forever (15minutes plus).
When I execute the stored procedure from within SQL Server Management Studio
it always executes fast (42000+ records in 1 second), even when from ADO.NET
it takes forever.
When the slowdown appears, restarting the application does not help.
When I do modify/execute in man.studio, the slowdown goes away, and
application does it normal quick response.
Activity monitor show no blocking other queries.
The stored procedure is called with a command object and an dataadapter
filling a dataset. When I break the application in visual studio, it breaks
on the da.fill(ds) line.
I cannot find any pattern in when the slowdown starts, sometime once a
week, once a day or 3 weeks without a problem.
Records added to the table are about 45 records per day (mean).
Can anyone shed some light on this problem??
.
- Follow-Ups:
- Prev by Date: Re: OT: Re: SQL Coalesce in Linq syntax
- Next by Date: GC.Collect() not cleaning memory, how to find out what references to lots of memory still exist?
- Previous by thread: Open Source Typed DataSet Generator
- Next by thread: Re: slowing/halting stored procedure from ado.net
- Index(es):
Relevant Pages
|