<?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>DBCC PAGE &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/dbcc-page/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>Tue, 14 Nov 2017 11:38:38 +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: DBCC PAGE and DBCC IND to find a Data Page information</title>
		<link>https://www.dbrnd.com/2016/04/sql-server-dbcc-page-and-dbcc-ind-to-find-a-data-page-information/</link>
					<comments>https://www.dbrnd.com/2016/04/sql-server-dbcc-page-and-dbcc-ind-to-find-a-data-page-information/#comments</comments>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Fri, 15 Apr 2016 17:43:48 +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[dbrnd]]></category>
		<category><![CDATA[row page header]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server Administrator]]></category>
		<category><![CDATA[SQL Server Monitoring]]></category>
		<category><![CDATA[SQL Server Performance Tunning]]></category>
		<category><![CDATA[SQL Server Tips and Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=2302</guid>

					<description><![CDATA[In the previous series of the articles, I shared internal structure of the Data File and Data Page of the SQL Server. In this article, I am going to share small practical demonstration on how to find Data Page information of a particular table of the SQL Server. First, Create a table with sample data: [&#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%2F2016%2F04%2Fsql-server-dbcc-page-and-dbcc-ind-to-find-a-data-page-information%2F&amp;linkname=SQL%20Server%3A%20DBCC%20PAGE%20and%20DBCC%20IND%20to%20find%20a%20Data%20Page%20information" 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%2F2016%2F04%2Fsql-server-dbcc-page-and-dbcc-ind-to-find-a-data-page-information%2F&amp;linkname=SQL%20Server%3A%20DBCC%20PAGE%20and%20DBCC%20IND%20to%20find%20a%20Data%20Page%20information" 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%2F2016%2F04%2Fsql-server-dbcc-page-and-dbcc-ind-to-find-a-data-page-information%2F&amp;linkname=SQL%20Server%3A%20DBCC%20PAGE%20and%20DBCC%20IND%20to%20find%20a%20Data%20Page%20information" 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%2F2016%2F04%2Fsql-server-dbcc-page-and-dbcc-ind-to-find-a-data-page-information%2F&amp;linkname=SQL%20Server%3A%20DBCC%20PAGE%20and%20DBCC%20IND%20to%20find%20a%20Data%20Page%20information" 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%2F2016%2F04%2Fsql-server-dbcc-page-and-dbcc-ind-to-find-a-data-page-information%2F&amp;linkname=SQL%20Server%3A%20DBCC%20PAGE%20and%20DBCC%20IND%20to%20find%20a%20Data%20Page%20information" 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%2F2016%2F04%2Fsql-server-dbcc-page-and-dbcc-ind-to-find-a-data-page-information%2F&amp;linkname=SQL%20Server%3A%20DBCC%20PAGE%20and%20DBCC%20IND%20to%20find%20a%20Data%20Page%20information" 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%2F2016%2F04%2Fsql-server-dbcc-page-and-dbcc-ind-to-find-a-data-page-information%2F&#038;title=SQL%20Server%3A%20DBCC%20PAGE%20and%20DBCC%20IND%20to%20find%20a%20Data%20Page%20information" data-a2a-url="https://www.dbrnd.com/2016/04/sql-server-dbcc-page-and-dbcc-ind-to-find-a-data-page-information/" data-a2a-title="SQL Server: DBCC PAGE and DBCC IND to find a Data Page information"></a></p><p>In the previous series of the articles, I shared internal structure of the Data File and Data Page of the SQL Server.</p>
<blockquote><p>In this article, I am going to share small practical demonstration on how to find Data Page information of a particular table of the SQL Server.</p></blockquote>
<p><strong>First, Create a table with sample data:</strong></p><pre class="crayon-plain-tag">CREATE TABLE dbo.tbl_TestDataPage 
(
	DataPageID INT PRIMARY KEY
	,Name VARCHAR(30)	
)
GO

INSERT dbo.tbl_TestDataPage 
VALUES 
(1,'Anvesh'),(2,'Neevan')
,(3,'Martin'),(4,'Jeeny')
,(5,'Maria'),(6,'Roy')
GO</pre><p>
<p><strong>Execute DBCC IND to check allocated pages of a Table:</strong><br />
You should put your Database_Name. -1 means display all type of pages.</p><pre class="crayon-plain-tag">DBCC IND('Database_Name', 'tbl_TestDataPage', -1)</pre><p>
<p><strong>The Result: </strong><br />
PageFID is a file number and PagePID is a page number. You can use these numbers for further tracing.</p>
<p><a href="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerDataPageInformation.png" rel="attachment wp-att-2306"><img decoding="async" class="alignnone wp-image-2306 size-full" title="SQL Server Data Page Information" src="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerDataPageInformation.png" alt="SQL Server Data Page Information" width="656" height="62" srcset="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerDataPageInformation.png 656w, https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerDataPageInformation-300x28.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerDataPageInformation-150x14.png 150w" sizes="(max-width: 656px) 100vw, 656px" /></a></p>
<p><strong>Execute DBCC PAGE to find more information about the allocated page:</strong></p>
<p><strong>Syntax:</strong></p><pre class="crayon-plain-tag">DBCC PAGE ( {'database_name' or DB_ID}, file_number, page_number [, printopt={0|1|2|3} ])

Print option:
0 - print the page header
1 - page header plus per-row hex dumps and slot array 
2 - page header plus whole page hex dump
3 - detailed per-row interpretation</pre><p>
</p><pre class="crayon-plain-tag">DBCC TRACEON(3604) -- This trace flag enable result in table format. 
GO
DBCC PAGE('database_name',1,274,3)
GO</pre><p>
<p><strong>The Result:</strong></p>
<p><a href="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerPageHeaderInformation.png" rel="attachment wp-att-2307"><img loading="lazy" decoding="async" class="alignnone wp-image-2307 size-full" title="SQL Server Page Header Information" src="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerPageHeaderInformation.png" alt="SQL Server Page Header Information" width="702" height="221" srcset="https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerPageHeaderInformation.png 702w, https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerPageHeaderInformation-300x94.png 300w, https://www.dbrnd.com/wp-content/uploads/2016/04/SQLServerPageHeaderInformation-150x47.png 150w" sizes="auto, (max-width: 702px) 100vw, 702px" /></a></p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.dbrnd.com/2016/04/sql-server-dbcc-page-and-dbcc-ind-to-find-a-data-page-information/feed/</wfw:commentRss>
			<slash:comments>2</slash:comments>
		
		
			</item>
	</channel>
</rss>
