<?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>SNAPSHOT &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/snapshot/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>Sun, 17 Dec 2017 20:08:16 +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 2014: Introduced DBCC CLONEDATABASE TO generate only Schema and Statistics</title>
		<link>https://www.dbrnd.com/2018/01/sql-server-2014-introduced-dbcc-clonedatabase-to-generate-only-schema-statistics-query-store/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Tue, 02 Jan 2018 16:16:21 +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]]></category>
		<category><![CDATA[DBCC CLONEDATABASE]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Query Store]]></category>
		<category><![CDATA[schema]]></category>
		<category><![CDATA[SNAPSHOT]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server 2014]]></category>
		<category><![CDATA[SQL Server 2016]]></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[Statistics]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=4139</guid>

					<description><![CDATA[<div><img width="452" height="336" src="https://www.dbrnd.com/wp-content/uploads/2018/01/SQL-Server-Clone-Database.jpg" class="attachment-post-image size-post-image wp-post-image" alt="SQL Server Clone Database" decoding="async" fetchpriority="high" /></div>SQL Server 2014 introduced DBCC CLONEDATABASE for creating a blank database with only Schema and Statistics. SQL Server 2016 added support of the Query Store in DBCC CLONEDATABASE. This feature is very helpful in certain conditions. For example, Your production database size is around 800 GB, and You faced some performance related issues because the [&#8230;]]]></description>
										<content:encoded><![CDATA[<div><img width="452" height="336" src="https://www.dbrnd.com/wp-content/uploads/2018/01/SQL-Server-Clone-Database.jpg" class="attachment-post-image size-post-image wp-post-image" alt="SQL Server Clone Database" decoding="async" /></div><p><a class="a2a_button_facebook" href="https://www.addtoany.com/add_to/facebook?linkurl=https%3A%2F%2Fwww.dbrnd.com%2F2018%2F01%2Fsql-server-2014-introduced-dbcc-clonedatabase-to-generate-only-schema-statistics-query-store%2F&amp;linkname=SQL%20Server%202014%3A%20Introduced%20DBCC%20CLONEDATABASE%20TO%20generate%20only%20Schema%20and%20Statistics" 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%2F2018%2F01%2Fsql-server-2014-introduced-dbcc-clonedatabase-to-generate-only-schema-statistics-query-store%2F&amp;linkname=SQL%20Server%202014%3A%20Introduced%20DBCC%20CLONEDATABASE%20TO%20generate%20only%20Schema%20and%20Statistics" 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%2F2018%2F01%2Fsql-server-2014-introduced-dbcc-clonedatabase-to-generate-only-schema-statistics-query-store%2F&amp;linkname=SQL%20Server%202014%3A%20Introduced%20DBCC%20CLONEDATABASE%20TO%20generate%20only%20Schema%20and%20Statistics" 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%2F2018%2F01%2Fsql-server-2014-introduced-dbcc-clonedatabase-to-generate-only-schema-statistics-query-store%2F&amp;linkname=SQL%20Server%202014%3A%20Introduced%20DBCC%20CLONEDATABASE%20TO%20generate%20only%20Schema%20and%20Statistics" 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%2F2018%2F01%2Fsql-server-2014-introduced-dbcc-clonedatabase-to-generate-only-schema-statistics-query-store%2F&amp;linkname=SQL%20Server%202014%3A%20Introduced%20DBCC%20CLONEDATABASE%20TO%20generate%20only%20Schema%20and%20Statistics" 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%2F2018%2F01%2Fsql-server-2014-introduced-dbcc-clonedatabase-to-generate-only-schema-statistics-query-store%2F&amp;linkname=SQL%20Server%202014%3A%20Introduced%20DBCC%20CLONEDATABASE%20TO%20generate%20only%20Schema%20and%20Statistics" 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%2F2018%2F01%2Fsql-server-2014-introduced-dbcc-clonedatabase-to-generate-only-schema-statistics-query-store%2F&#038;title=SQL%20Server%202014%3A%20Introduced%20DBCC%20CLONEDATABASE%20TO%20generate%20only%20Schema%20and%20Statistics" data-a2a-url="https://www.dbrnd.com/2018/01/sql-server-2014-introduced-dbcc-clonedatabase-to-generate-only-schema-statistics-query-store/" data-a2a-title="SQL Server 2014: Introduced DBCC CLONEDATABASE TO generate only Schema and Statistics"></a></p><p><em>SQL Server 2014 introduced DBCC CLONEDATABASE for creating a blank database with only Schema and Statistics.</p>
<p>SQL Server 2016 added support of the Query Store in DBCC CLONEDATABASE.</em></p>
<blockquote><p>
This feature is very helpful in certain conditions.<br />
For example, Your production database size is around 800 GB, and You faced some performance related issues because the problem of outdated Statistics or Indexes issue.</p></blockquote>
<blockquote><p>Now the situation is, you can do a test and trial in your Production Database, so DBA takes a copy of Production Database and restore it in different server for further investigation.</p></blockquote>
<blockquote><p>Do you think, this is the only one solution because Its require additional time and infrastructure.</p></blockquote>
<blockquote><p>In this kind of situation, you can use the DBCC CLONEDATABASE feature of SQL Server 2014.</p></blockquote>
<blockquote><p>It creates a blank database copy with the only Schema, Statistics and Query Store information. It is not copying the data, so it does not require any additional space.</p></blockquote>
<blockquote><p>You can find the same statistical information in the new clone database which generates the same execution plan for your investigation.</p>
<p>A Query Execution Plan is prepared to base on Database Statistics so If Database Statistics are same then you check your query execution plan without data.</p></blockquote>
<p>Once you are finished with your task with Clone Database, you can delete it.</p>
<p><strong>How internally SQL Server creates a Clone Database?</strong></p>
<blockquote><p>It validates the source database and acquires the shared lock on the source database</p>
<p>	It creates a snapshot of the source database (Include only: Schema, Statistics, Query Store)</p>
<p>	Create Clone Database and acquires an exclusive lock on it</p>
<p>	Copy the metadata, schema, statistics, query store information from the source database to clone database</p>
<p>	Release all locks from Clone Database</p></blockquote>
<p><strong>How to create a Clone Database?</strong></p>
<p>Use DBCC CLONEDATABASE command to create a Clone Database.<br />
<pre class="crayon-plain-tag">DBCC CLONEDATABASE (MyDatabase,MyDatabase_Clone);</pre>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
