SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


select query does not return any resultset


select query does not return any resultset

Author
Message
sharon-644450
sharon-644450
SSC-Enthusiastic
SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)SSC-Enthusiastic (172 reputation)

Group: General Forum Members
Points: 172 Visits: 761
hi all,

i have a table with 74 rows. when i run a select statement on it, it does not return any resultset.

for the same query if i use the nolock hint , it does return the result.

i ran a profiler to see what is happening behind the scene and i see only the SQL:BatchStarting

i donot see the table being locked in the activity monitor. no error in the event viewer for SQL. only a below warning

[ warning] [vmusr:vmusr] Error in the RPC receive loop: RpcIn: Unable to send . there exist a hotfix for this error and it will be applied.but not sure if the strange behaviour is due to this any suggestions ?

also, if i run select statment against any other table it runs without any error.

dbcc checktable returns no error.
DBCC results for 'POLICY_LOCKS'.
There are 74 rows in 1 pages for object "POLICY_LOCKS".
DBCC execution completed. If DBCC printed error messages, contact your system administrator.

sql version: SQL server 2005 with SP4
Windows: Server 2003 Enterprise Editionwith SP2

thanks.
MMartin1
MMartin1
SSCrazy
SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)SSCrazy (2.8K reputation)

Group: General Forum Members
Points: 2769 Visits: 2031
Try
dbcc opentran
to look for any open transaction. If nothing, you can try issuing a 'checkpoint' command on the database to commit data in the systems memory.

----------------------------------------------------
How to post forum questions to get the best help
WolfgangE
WolfgangE
SSC-Addicted
SSC-Addicted (479 reputation)SSC-Addicted (479 reputation)SSC-Addicted (479 reputation)SSC-Addicted (479 reputation)SSC-Addicted (479 reputation)SSC-Addicted (479 reputation)SSC-Addicted (479 reputation)SSC-Addicted (479 reputation)

Group: General Forum Members
Points: 479 Visits: 792
Maybe you get some useful information about what locks the table using sys.dm_tran_locks (http://msdn.microsoft.com/en-us/library/ms190345%28v=sql.90%29.aspx)
There are some other Transaction Related Dynamic Management Views and Functions that might help you: http://msdn.microsoft.com/en-us/library/ms178621%28v=sql.90%29.aspx
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search