.Net 2.0 & SQL Server 2008 Hanging Process -


I created a simple net web service that runs a very simple query (usually very quick). The query is something like this:

  dbo.Reporting from R.Internet select v.email on r.reportID = el.reportIDInterior dbo.Reporting_EmailListLinclude OtherDB.dbo.V_ActiveDir VL .userGUID = v.objectGUID WHERE r.reportID = @reportID  

V_ActiveDir is a view for Active Directory data. This inquiry essentially gives me a list of email addresses in which the report Should be emailed. Currently there are only 3 records in my reporting table. I was trying to add field to the reporting table but it was taking forever, the way I came to know that this query was hanging in a SQL process before the day This script generated the following error:

  The expiration time expired before the operation was completed or the server was closed. Isad is not.  

... I think the execution process tells me I guess. We tried to kill it, but now it is in a rollback position and I think we may have to reboot the SQL server (which is strange in my mind that a select query will rollback the attempt). Is there any way with SQL Server or Net coming again? Or in a way I can remove this process in SQL ... Is there anything possible that the thread is hanging in the pool? I can still select from the reporting table, so there is no table lock, only when I try to change this table, it only spin your wheels.

I do not have much experience with IIS because I do not have access to it, but if there is any suggestion then I can pass it.

EDIT: This can happen because in my catch statement I could not see if the SQL connection is on, and if it is closed?

First of all, do not reboot the SQL anytime if it is in recovery state (like

ASP.NET queries normally expire in 30 or 60 seconds.

Check if the following fields are indexed:

  • dbo.Reporting.ReportID ,
  • dbo.Reporting_EmailList.ReportID
  • dbo.Reporting_EmailList.userGUID
  • OtherDB.dbo.V_ActiveDir.objectGUID in the built-in table)

Where is the other DB located? Is this linked database? This problem The Issa could be.

What does the query plan for this query? Could you see doubt anything there?


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -