![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I've never run into this before and have burned two days trying to figure it out. I have a relatively performant store procedure that runs in less than a second when called from Management Studio but when run from a typed dataset in an asp.net page it sits for 30 seconds and then throws a SQL timeout exception. An SQL trace of the both look exactly the same -- even when I through every option SQL Profiler has to offer. I am using the same account in both instances and as best I can tell the connection properties are set the same. There are numerous writes to the tables that are in the query, but the reads are all dirty (NOLOCK clause). SP_WHO2 doesn't show any blocking issues. Also server resource utilization is low. Besides -- if it were a utilization of contention issue, it would affect both instances. I am really at a loss... |
#3
| |||
| |||
|
|
Exactly the same issue we are facing. In Management studio it executes in less than a second (over internet) and from our .NET code, it throws up a timeout error (local network). Please let me know if you come accross a solution that works. Thanks. |
#4
| |||
| |||
|
|
Well sp_Updatestats consistently corrects the issue, but unless I want to run it several times a day then I need to find another solution. I am running VS2008 with .Net FW 3.5 and SQL Server 2005 Standard. One of the tables queried sees many updates to per day. The SP (below) has a subtree cost under 5. I can get it under 1 with more robust indexing, but I don't want to kill write performance: |
#5
| |||
| |||
|
|
I've never run into this before and have burned two days trying to figure it out. I have a relatively performant store procedure that runs in less than a second when called from Management Studio but when run from a typed dataset in an asp.net page it sits for 30 seconds and then throws a SQL timeout exception. An SQL trace of the both look exactly the same -- even when I through every option SQL Profiler has to offer. I am using the same account in both instances and as best I can tell the connection properties are set the same. There are numerous writes to the tables that are in the query, but the reads are all dirty (NOLOCK clause). SP_WHO2 doesn't show any blocking issues. Also server resource utilization is low. Besides -- if it were a utilization of contention issue, it would affect both instances. I am really at a loss... |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |