Note that there are some explanatory texts on larger screens.

plurals
  1. POSQL Server Query doesn't finish execution
    primarykey
    data
    text
    <p>I apologize for the nOOb question but I have a very simple SQL Server Query which SELECTS data from a table. The table is about 18 rows big in size and the query is as below,</p> <p><strong>SELECT * FROM SavedJobs</strong></p> <p>And this never finishes execution on SQL SERVER MANAGEMENT STUDIO </p> <p>but when run using WITH(NOLOCK) it spits out the result, for example,</p> <p><strong>SELECT * FROM SavedJobs WITH(NOLOCK)</strong></p> <p>I believe something on my database has locked the SavedJobs table and I would like to figure out and kill that lock. Can someone please guide me in solving this issue?</p> <p>Output from <code>sp_lock</code>:</p> <pre><code>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 IS 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 IS GRANT 89 7 0 0 DB S GRANT 89 7 1243151474 0 TAB IS GRANT 89 7 699149536 0 TAB IS GRANT 89 7 768721791 0 TAB IS GRANT 89 7 608721221 0 TAB IS GRANT 89 7 608721221 1 KEY (ff6a151f422b) S WAIT 89 7 32719169 0 TAB IS 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 </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload