SQL Server Query doesn't finish execution -
i apologize noob question have simple sql server query selects data table. table 18 rows big in size , query below,
select * savedjobs
and never finishes execution on sql server management studio
but when run using with(nolock) spits out result, example,
select * savedjobs with(nolock)
i believe on database has locked savedjobs table , figure out , kill lock. can please guide me in solving issue?
output sp_lock:
spid dbid objid indid type resource mode status 51 4 0 0 db s grant 52 7 0 0 db s grant 53 7 0 0 db s grant 54 4 0 0 db s grant 55 7 0 0 db s grant 56 7 0 0 db s grant 57 7 0 0 db s grant 58 7 0 0 db s grant 58 1 1131151075 0 tab grant 62 4 0 0 db s grant 63 4 0 0 db s grant 64 7 0 0 db s grant 66 9 0 0 db s grant 67 9 0 0 db s grant 68 7 0 0 db s grant 68 7 608721221 1 key (ff6a151f422b) x grant 68 7 608721221 1 pag 1:246 ix grant 68 7 608721221 2 pag 1:250 ix grant 68 7 608721221 0 tab ix grant 68 7 32719169 0 tab ix grant 68 7 608721221 2 key (937ccdaf17f5) x grant 69 7 0 0 db s grant 70 7 0 0 db s grant 71 9 0 0 db s grant 72 7 0 0 db s grant 74 9 0 0 db s grant 75 7 0 0 db s grant 76 9 0 0 db s grant 78 9 0 0 db s grant 79 9 0 0 db s grant 85 9 0 0 db s grant 86 7 0 0 db s grant 89 7 608721221 1 pag 1:246 grant 89 7 0 0 db s grant 89 7 1243151474 0 tab grant 89 7 699149536 0 tab grant 89 7 768721791 0 tab grant 89 7 608721221 0 tab grant 89 7 608721221 1 key (ff6a151f422b) s wait 89 7 32719169 0 tab grant 96 9 0 0 db s grant 98 7 0 0 db s grant 100 7 0 0 db s grant 101 9 0 0 db s grant 102 9 0 0 db s grant 103 9 0 0 db s grant 105 7 0 0 db s grant 106 7 0 0 db s grant
you can execute sp_who2 in session show session blocking one. can use kill kill process (not lock!)
Comments
Post a Comment