The select statement took so much of time and received time out error after some time.
There was a lock applied on the table and which was not released.
Ok. Now let’s see the solution for this problem.
Finding locks and Killing unwanted on the tables
Get the id of the object UserInfo by using the following statement
SELECT OBJECT_ID('UserInfo') –Gets id of the object UserInfo
Find the applied locks on the object UserInfo
sp_lock 2105058535 -- 2105058535 ID of the object UserInfo
Now we need to find out the sleeping processes or unwanted processes which have applied locks on the table object UserInfo
kill 52 --52 is the process id
That’s it this resumed our development work J.
I hope you may find this useful.