{"id":17,"date":"2021-07-21T14:41:21","date_gmt":"2021-07-21T12:41:21","guid":{"rendered":"http:\/\/130.61.57.200\/?p=17"},"modified":"2021-07-21T16:05:03","modified_gmt":"2021-07-21T14:05:03","slug":"check-for-suspect-pages","status":"publish","type":"post","link":"http:\/\/130.61.57.200\/index.php\/2021\/07\/21\/check-for-suspect-pages\/","title":{"rendered":"Check for suspect pages"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">SQL Servers keeps record of the corrupted pages it accesses in msdb table dbo.suspect_pages. Note that table only holds 1000 rows. Then again you should not find any records in it whenever querying it! <\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>SELECT d.name AS databaseName,\n  mf.name AS &#091;File Name],\n  mf.physical_name AS &#091;Physical File Name],\n  sp.page_id,\n  CASE sp.event_type\n    WHEN 1 THEN N&#039;823 or 824 error&#039;\n    WHEN 2 THEN N&#039;Bad Checksum&#039;\n    WHEN 3 THEN N&#039;Torn Page&#039;\n    WHEN 4 THEN N&#039;Restored&#039;\n    WHEN 5 THEN N&#039;Repaired&#039;\n    WHEN 7 THEN N&#039;Deallocated&#039;\n  END AS &#091;Event Type],\n  sp.error_count,\n  sp.last_update_date\nFROM msdb.dbo.suspect_pages AS sp\nJOIN sys.databases as d \nON sp.database_id = d.database_id\nJOIN sys.master_files as mf \nON sp.&#091;file_id] = mf.&#091;file_id]\n AND d.database_id = mf.database_id;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>SQL Servers keeps record of the corrupted pages it accesses in msdb table dbo.suspect_pages. Note that table only holds 1000 rows. Then again you should not find any records in it whenever querying it!<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[8,9],"class_list":["post-17","post","type-post","status-publish","format-standard","hentry","category-mssql","tag-corruption","tag-suspect-pages"],"blocksy_meta":{"styles_descriptor":{"styles":{"desktop":"","tablet":"","mobile":""},"google_fonts":[]}},"_links":{"self":[{"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/posts\/17","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/comments?post=17"}],"version-history":[{"count":3,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/posts\/17\/revisions"}],"predecessor-version":[{"id":21,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/posts\/17\/revisions\/21"}],"wp:attachment":[{"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/media?parent=17"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/categories?post=17"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/130.61.57.200\/index.php\/wp-json\/wp\/v2\/tags?post=17"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}