<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>suspect_pages &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/suspect_pages/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.dbrnd.com</link>
	<description>BIGData &#124; NoSQL &#124; MSSQL &#124; MySQL &#124; PostgreSQL</description>
	<lastBuildDate>Wed, 02 Aug 2017 19:41:22 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.6</generator>
	<item>
		<title>SQL Server: How to find Table name from Page ID?</title>
		<link>https://www.dbrnd.com/2017/08/sql-server-how-to-find-table-name-from-page-id-suspect_pages-dbcc-page/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 10 Aug 2017 16:16:52 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[DBCC IND]]></category>
		<category><![CDATA[DBCC PAGE]]></category>
		<category><![CDATA[DBCC TRACEOFF]]></category>
		<category><![CDATA[DBCC TRACEON]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Metadata]]></category>
		<category><![CDATA[object id]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[suspect_pages]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5801</guid>

					<description><![CDATA[<div><img width="640" height="426" src="https://www.dbrnd.com/wp-content/uploads/2017/08/SQLCorruptData.jpg" class="attachment-post-image size-post-image wp-post-image" alt="SQLCorruptData" decoding="async" fetchpriority="high" /></div>In the previous post, I shared demonstration on how to corrupt your table in SQL Server. Generally, SQL DBAs are executing DBCC CHECKDB for checking and finding damaged table or data. But if your database size is very enormous and the result of DBCC CHECKDB is also huge, it is tough to find out suspected [&#8230;]]]></description>
										<content:encoded><![CDATA[<div><img width="640" height="426" src="https://www.dbrnd.com/wp-content/uploads/2017/08/SQLCorruptData.jpg" class="attachment-post-image size-post-image wp-post-image" alt="SQLCorruptData" decoding="async" /></div><p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-how-to-find-table-name-from-page-id-suspect_pages-dbcc-page%2F&amp;linkname=SQL%20Server%3A%20How%20to%20find%20Table%20name%20from%20Page%20ID%3F" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-how-to-find-table-name-from-page-id-suspect_pages-dbcc-page%2F&amp;linkname=SQL%20Server%3A%20How%20to%20find%20Table%20name%20from%20Page%20ID%3F" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-how-to-find-table-name-from-page-id-suspect_pages-dbcc-page%2F&amp;linkname=SQL%20Server%3A%20How%20to%20find%20Table%20name%20from%20Page%20ID%3F" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-how-to-find-table-name-from-page-id-suspect_pages-dbcc-page%2F&amp;linkname=SQL%20Server%3A%20How%20to%20find%20Table%20name%20from%20Page%20ID%3F" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-how-to-find-table-name-from-page-id-suspect_pages-dbcc-page%2F&amp;linkname=SQL%20Server%3A%20How%20to%20find%20Table%20name%20from%20Page%20ID%3F" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-how-to-find-table-name-from-page-id-suspect_pages-dbcc-page%2F&amp;linkname=SQL%20Server%3A%20How%20to%20find%20Table%20name%20from%20Page%20ID%3F" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-how-to-find-table-name-from-page-id-suspect_pages-dbcc-page%2F&#038;title=SQL%20Server%3A%20How%20to%20find%20Table%20name%20from%20Page%20ID%3F" data-a2a-url="https://www.dbrnd.com/2017/08/sql-server-how-to-find-table-name-from-page-id-suspect_pages-dbcc-page/" data-a2a-title="SQL Server: How to find Table name from Page ID?"></a></p><p>In the previous post, I shared demonstration on how to corrupt your table in SQL Server.</p>
<blockquote><p>Generally, SQL DBAs are executing DBCC CHECKDB for checking and finding damaged table or data. But if your database size is very enormous and the result of DBCC CHECKDB is also huge, it is tough to find out suspected tables.</p></blockquote>
<p>Then, what is the solution?<br />
The solution is to check the suspect pages and find the table name using object id. </p>
<p>Check the below demonstration where I used one sample corrupted table, and more you can test the yesterday&#8217;s post for tbl_bad. </p>
<p><strong>Check the suspect_pages:</strong></p>
<pre class="crayon-plain-tag">SELECT * FROM [msdb].[dbo].[suspect_pages]</pre> </p>
<p><strong>Result:</strong></p>
<pre class="crayon-plain-tag">database_id file_id     page_id              
----------- ----------- -------------------- 
10          1           312</pre> </p>
<p><strong>Execute below DBCC PAGE:</strong><br />
Database id =10<br />
File no=1<br />
Page id=312<br />
Print option=0</p>
<pre class="crayon-plain-tag">DBCC TRACEON (3604);
DBCC PAGE (10, 1, 312, 0);
DBCC TRACEOFF (3604);
GO</pre> </p>
<p><strong>Result:</strong></p>
<pre class="crayon-plain-tag">PAGE HEADER:

Page @0x000000F815DC4000

m_pageId = (1:312)                  m_headerVersion = 1                 m_type = 1
m_typeFlagBits = 0x0                m_level = 0                         m_flagBits = 0x8200
m_objId (AllocUnitId.idObj) = 138   m_indexId (AllocUnitId.idInd) = 256 
Metadata: AllocUnitId = 72057594046971904                                
Metadata: PartitionId = 72057594041335808                                Metadata: IndexId = 1
Metadata: ObjectId = 565577053      m_prevPage = (0:0)                  m_nextPage = (0:0)
pminlen = 8                         m_slotCnt = 5                       m_freeCnt = 7976
m_freeData = 206                    m_reservedCnt = 0                   m_lsn = (34:228:3)
m_xactReserved = 0                  m_xdesId = (0:0)                    m_ghostRecCnt = 0
m_tornBits = -411585792             DB Frag ID = 1                      

Allocation Status

GAM (1:2) = ALLOCATED               SGAM (1:3) = NOT ALLOCATED          PFS (1:1) = 0x40 ALLOCATED   0_PCT_FULL
DIFF (1:6) = CHANGED                ML (1:7) = NOT MIN_LOGGED</pre> </p>
<p><strong>Find Metadata: ObjectId and get the object name:</strong></p>
<pre class="crayon-plain-tag">SELECT OBJECT_NAME (565577053);</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server: Corrupt a table using DBCC WRITEPAGE</title>
		<link>https://www.dbrnd.com/2017/08/sql-server-corrupt-a-table-using-dbcc-writepage-suspect_pages/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 09 Aug 2017 16:16:01 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[DBCC IND]]></category>
		<category><![CDATA[DBCC WRITEPAGE]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[suspect_pages]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=5797</guid>

					<description><![CDATA[<div><img width="679" height="509" src="https://www.dbrnd.com/wp-content/uploads/2017/08/data-corrupt-679x509.gif" class="attachment-post-image size-post-image wp-post-image" alt="data-corrupt" decoding="async" /></div>In this post, I am sharing a demonstration on how to damage a table of SQL Server. Why I am sharing this because practice on data corruption is required for SQL DBA before actual data corruption happens. You can find N number of different solutions for restoring corrupted database or table, but what about like [&#8230;]]]></description>
										<content:encoded><![CDATA[<div><img width="679" height="509" src="https://www.dbrnd.com/wp-content/uploads/2017/08/data-corrupt-679x509.gif" class="attachment-post-image size-post-image wp-post-image" alt="data-corrupt" decoding="async" loading="lazy" /></div><p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-corrupt-a-table-using-dbcc-writepage-suspect_pages%2F&amp;linkname=SQL%20Server%3A%20Corrupt%20a%20table%20using%20DBCC%20WRITEPAGE" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-corrupt-a-table-using-dbcc-writepage-suspect_pages%2F&amp;linkname=SQL%20Server%3A%20Corrupt%20a%20table%20using%20DBCC%20WRITEPAGE" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-corrupt-a-table-using-dbcc-writepage-suspect_pages%2F&amp;linkname=SQL%20Server%3A%20Corrupt%20a%20table%20using%20DBCC%20WRITEPAGE" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-corrupt-a-table-using-dbcc-writepage-suspect_pages%2F&amp;linkname=SQL%20Server%3A%20Corrupt%20a%20table%20using%20DBCC%20WRITEPAGE" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-corrupt-a-table-using-dbcc-writepage-suspect_pages%2F&amp;linkname=SQL%20Server%3A%20Corrupt%20a%20table%20using%20DBCC%20WRITEPAGE" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-corrupt-a-table-using-dbcc-writepage-suspect_pages%2F&amp;linkname=SQL%20Server%3A%20Corrupt%20a%20table%20using%20DBCC%20WRITEPAGE" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F08%2Fsql-server-corrupt-a-table-using-dbcc-writepage-suspect_pages%2F&#038;title=SQL%20Server%3A%20Corrupt%20a%20table%20using%20DBCC%20WRITEPAGE" data-a2a-url="https://www.dbrnd.com/2017/08/sql-server-corrupt-a-table-using-dbcc-writepage-suspect_pages/" data-a2a-title="SQL Server: Corrupt a table using DBCC WRITEPAGE"></a></p><p>In this post, I am sharing a demonstration on how to damage a table of SQL Server.<br />
Why I am sharing this because practice on data corruption is required for SQL DBA before actual data corruption happens.</p>
<blockquote><p>You can find N number of different solutions for restoring corrupted database or table, but what about like if you want to test any of this solution.<br />
In most of the cases, the table gets corrupt because of invalid data or junk data of data page. Using DBCC WRITEPAGE, you can modify the table page.</p></blockquote>
<p>Please check the below demonstration, and share your commands/options via comments to restore this table.</p>
<p><strong>Create a sample database:</strong></p>
<pre class="crayon-plain-tag">CREATE DATABASE KillMe
GO 
USE KillMe 
GO</pre> </p>
<p><strong>Create a table with sample data:</strong></p>
<pre class="crayon-plain-tag">CREATE TABLE tbl_bad
(
    ID INT IDENTITY(1,1) 
    ,Name VARCHAR(10) DEFAULT 'dbrnd'
)
GO 

CREATE CLUSTERED INDEX ix_ID ON tbl_bad(ID) 
GO
 
INSERT INTO tbl_bad DEFAULT VALUES
INSERT INTO tbl_bad DEFAULT VALUES
INSERT INTO tbl_bad DEFAULT VALUES
INSERT INTO tbl_bad DEFAULT VALUES
INSERT INTO tbl_bad DEFAULT VALUES 
GO</pre> </p>
<p><strong>Find the page information of table:</strong></p>
<pre class="crayon-plain-tag">DBCC IND (KillMe, 'tbl_bad', 1)
GO</pre> </p>
<p><strong>Result:</strong></p>
<pre class="crayon-plain-tag">PageFID PagePID     IAMFID IAMPID      ObjectID    PageType 
------- ----------- ------ ----------- ----------- -------- 
1       320         NULL   NULL        565577053   10       
1       312         1      320         565577053   1</pre> </p>
<p><strong>Change database to single user mode:</strong></p>
<pre class="crayon-plain-tag">ALTER DATABASE KillMe SET SINGLE_USER WITH ROLLBACK IMMEDIATE</pre> </p>
<p><strong>Modify page number which page type is 1:</strong></p>
<pre class="crayon-plain-tag">DBCC WRITEPAGE('KillMe', 1, 312, 60, 1, 0x00, 1)</pre> </p>
<p><strong>Now try to select your table data:</strong></p>
<pre class="crayon-plain-tag">SELECT *FROM tbl_bad</pre> </p>
<p><strong>Error in the result:</strong></p>
<pre class="crayon-plain-tag">Msg 824, Level 24, State 2, Line 1
SQL Server detected a logical consistency-based I/O error: incorrect checksum (expected: 0xe777b300; actual: 0xe777b303). It occurred during a read of page (1:312) in database ID 10 at offset 0x00000000270000 
in file 'C:\Program Files\Microsoft SQL Server\MSSQL13.SQLSERVER\MSSQL\DATA\KillMe.mdf'.  Additional messages in the SQL Server error log or system event log may provide more detail. 
This is a severe error condition that threatens database integrity and must be corrected immediately. Complete a full database consistency check (DBCC CHECKDB). 
This error can be caused by many factors; for more information, see SQL Server Books Online.</pre> </p>
<p><strong>Check the suspect_pages:</strong></p>
<pre class="crayon-plain-tag">SELECT * FROM [msdb].[dbo].[suspect_pages]</pre> </p>
<p><strong>Result:</strong></p>
<pre class="crayon-plain-tag">database_id file_id     page_id              
----------- ----------- -------------------- 
10          1           312</pre> </p>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server: Script to monitor the Corrupt Database Pages</title>
		<link>https://www.dbrnd.com/2017/02/sql-server-script-to-monitor-the-corrupt-database-pages-checksum-page-verification/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 22 Feb 2017 16:16:32 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[CHECKSUM]]></category>
		<category><![CDATA[corrupt data page]]></category>
		<category><![CDATA[data corruption]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Error]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tuning]]></category>
		<category><![CDATA[SQL Server Programming]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[suspect_pages]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4615</guid>

					<description><![CDATA[In this post, I am sharing T-SQL script to monitor the Corrupt Database Pages of SQL Server. SQL Server: Enable CHECKSUM Page Verification to detect a prime spot of Data Corruption You should not the wait for big data corruption. Periodically, DBA can monitor the data corruption in SQL Server. Use msdb.dbo.suspect_pages table to get [&#8230;]]]></description>
										<content:encoded><![CDATA[<p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F02%2Fsql-server-script-to-monitor-the-corrupt-database-pages-checksum-page-verification%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20monitor%20the%20Corrupt%20Database%20Pages" title="Facebook" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_twitter" href="https://www.addtoany.com/add_to/twitter?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F02%2Fsql-server-script-to-monitor-the-corrupt-database-pages-checksum-page-verification%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20monitor%20the%20Corrupt%20Database%20Pages" title="Twitter" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_linkedin" href="https://www.addtoany.com/add_to/linkedin?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F02%2Fsql-server-script-to-monitor-the-corrupt-database-pages-checksum-page-verification%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20monitor%20the%20Corrupt%20Database%20Pages" title="LinkedIn" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pinterest" href="https://www.addtoany.com/add_to/pinterest?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F02%2Fsql-server-script-to-monitor-the-corrupt-database-pages-checksum-page-verification%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20monitor%20the%20Corrupt%20Database%20Pages" title="Pinterest" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_reddit" href="https://www.addtoany.com/add_to/reddit?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F02%2Fsql-server-script-to-monitor-the-corrupt-database-pages-checksum-page-verification%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20monitor%20the%20Corrupt%20Database%20Pages" title="Reddit" rel="nofollow noopener" target="_blank"></a><a class="a2a_button_pocket" href="https://www.addtoany.com/add_to/pocket?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F02%2Fsql-server-script-to-monitor-the-corrupt-database-pages-checksum-page-verification%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20monitor%20the%20Corrupt%20Database%20Pages" title="Pocket" rel="nofollow noopener" target="_blank"></a><a class="a2a_dd addtoany_share_save addtoany_share" href="https://www.addtoany.com/share#url=https%3A%2F%2Fwww.dbrnd.com%2F2017%2F02%2Fsql-server-script-to-monitor-the-corrupt-database-pages-checksum-page-verification%2F&#038;title=SQL%20Server%3A%20Script%20to%20monitor%20the%20Corrupt%20Database%20Pages" data-a2a-url="https://www.dbrnd.com/2017/02/sql-server-script-to-monitor-the-corrupt-database-pages-checksum-page-verification/" data-a2a-title="SQL Server: Script to monitor the Corrupt Database Pages"></a></p><p>In this post, I am sharing T-SQL script to monitor the Corrupt Database Pages of SQL Server. </p>
<blockquote class="wp-embedded-content" data-secret="7TyPGqffc1"><p><a href="https://www.dbrnd.com/2017/02/sql-server-enable-checksum-page-verification-to-detect-a-prime-spot-of-corruption/">SQL Server: Enable CHECKSUM Page Verification to detect a prime spot of Data Corruption</a></p></blockquote>
<p><iframe loading="lazy" class="wp-embedded-content" sandbox="allow-scripts" security="restricted"  src="https://www.dbrnd.com/2017/02/sql-server-enable-checksum-page-verification-to-detect-a-prime-spot-of-corruption/embed/#?secret=7TyPGqffc1" data-secret="7TyPGqffc1" width="600" height="338" title="&#8220;SQL Server: Enable CHECKSUM Page Verification to detect a prime spot of Data Corruption&#8221; &#8212; Database Research &amp; Development" frameborder="0" marginwidth="0" marginheight="0" scrolling="no"></iframe></p>
<p>You should not the wait for big data corruption. Periodically, DBA can monitor the data corruption in SQL Server.<br />
Use msdb.dbo.suspect_pages table to get the information of corrupt pages. </p>
<pre class="crayon-plain-tag">SELECT 
	SD.NAME AS DatabaseName
	,SP.file_id AS FileID
	,MF.physical_name AS PhysicalFilePath
	,SP.page_id AS PageID
	,CASE 
		WHEN SP.event_type = 1
			THEN '823 error caused by an operating system CRC error or 824 error other than a bad checksum or a torn page'
		WHEN SP.event_type = 2
			THEN 'Bad checksum'
		WHEN SP.event_type = 3
			THEN 'Torn Page'
		WHEN SP.event_type = 4
			THEN 'Restored (The page was restored after it was marked bad)'
		WHEN SP.event_type = 5
			THEN 'Repaired (DBCC repaired the page)'
		WHEN SP.event_type = 7
			THEN 'Deallocated by DBCC'
	END AS EventDescription
	,SP.error_count AS ErrorCount
	,SP.last_update_date AS LastUpdated
FROM msdb.dbo.suspect_pages AS SP
INNER JOIN sys.databases AS SD 
	ON SD.database_id = SP.database_id
INNER JOIN sys.master_files AS MF 
	ON MF.database_id = SP.database_id
		AND MF.file_id = SP.file_id</pre> </p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
