Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Register Now and get your question answered!
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 Query Timeout
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Posting Yak Master

105 Posts

Posted - 12/24/2012 :  01:03:33  Show Profile  Reply with Quote

I ran the following queries in ssms,the first query getting a result in a Sec after i changed a where clause data in a same query but it ran long time and getting timeout error. why this query behave like this.

The Queries

2.Select * From BI_SERVICE_HEADER where BSH_pat_NUM ='IP/121203/00007'

This Query in 1 Sec

1.Select * From BI_SERVICE_HEADER where BSH_pat_NUM ='IP/121203/00008'

This Query in Time out Error.


Edited by - raguyazhin on 12/24/2012 01:05:52

Flowing Fount of Yak Knowledge

2242 Posts

Posted - 12/24/2012 :  02:45:23  Show Profile  Reply with Quote
May be that record is locked by some other user....

Go to Top of Page

Very Important crosS Applying yaK Herder

52326 Posts

Posted - 12/24/2012 :  15:35:44  Show Profile  Reply with Quote
use sp_who2 for identifying any blocking issues.

SQL Server MVP

Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000