<?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>database plan &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/database-plan/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:25:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.4</generator>
	<item>
		<title>SQL Server 2016: Introduced Database Scoped Configuration Options</title>
		<link>https://www.dbrnd.com/2018/01/sql-server-2016-introduced-database-scoped-configuration-options-maxdop-parameter-sniffing-optimizer/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Thu, 04 Jan 2018 16:16:18 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[cardinality]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database plan]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[Genetic Query Optimizer]]></category>
		<category><![CDATA[MAXDOP]]></category>
		<category><![CDATA[Parameter Sniffing]]></category>
		<category><![CDATA[scoped configuration]]></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=4186</guid>

					<description><![CDATA[<div><img width="679" height="450" src="https://www.dbrnd.com/wp-content/uploads/2017/12/SQLScope-679x450.jpg" class="attachment-post-image size-post-image wp-post-image" alt="SQLScope" decoding="async" fetchpriority="high" srcset="https://www.dbrnd.com/wp-content/uploads/2017/12/SQLScope-679x450.jpg 679w, https://www.dbrnd.com/wp-content/uploads/2017/12/SQLScope.jpg 800w" sizes="(max-width: 679px) 100vw, 679px" /></div>SQL Server 2016 introduced Database Scoped Configuration Options that can set at the database level, which was previously available at the instance level only. In SSMS, you can right click on database -> go to -> option -> find Database Scoped Configuration section. It introduced main four parameters, which we can set at the database [&#8230;]]]></description>
										<content:encoded><![CDATA[<div><img width="679" height="450" src="https://www.dbrnd.com/wp-content/uploads/2017/12/SQLScope-679x450.jpg" class="attachment-post-image size-post-image wp-post-image" alt="SQLScope" decoding="async" srcset="https://www.dbrnd.com/wp-content/uploads/2017/12/SQLScope-679x450.jpg 679w, https://www.dbrnd.com/wp-content/uploads/2017/12/SQLScope.jpg 800w" sizes="(max-width: 679px) 100vw, 679px" /></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-2016-introduced-database-scoped-configuration-options-maxdop-parameter-sniffing-optimizer%2F&amp;linkname=SQL%20Server%202016%3A%20Introduced%20Database%20Scoped%20Configuration%20Options" 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-2016-introduced-database-scoped-configuration-options-maxdop-parameter-sniffing-optimizer%2F&amp;linkname=SQL%20Server%202016%3A%20Introduced%20Database%20Scoped%20Configuration%20Options" 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-2016-introduced-database-scoped-configuration-options-maxdop-parameter-sniffing-optimizer%2F&amp;linkname=SQL%20Server%202016%3A%20Introduced%20Database%20Scoped%20Configuration%20Options" 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-2016-introduced-database-scoped-configuration-options-maxdop-parameter-sniffing-optimizer%2F&amp;linkname=SQL%20Server%202016%3A%20Introduced%20Database%20Scoped%20Configuration%20Options" 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-2016-introduced-database-scoped-configuration-options-maxdop-parameter-sniffing-optimizer%2F&amp;linkname=SQL%20Server%202016%3A%20Introduced%20Database%20Scoped%20Configuration%20Options" 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-2016-introduced-database-scoped-configuration-options-maxdop-parameter-sniffing-optimizer%2F&amp;linkname=SQL%20Server%202016%3A%20Introduced%20Database%20Scoped%20Configuration%20Options" 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-2016-introduced-database-scoped-configuration-options-maxdop-parameter-sniffing-optimizer%2F&#038;title=SQL%20Server%202016%3A%20Introduced%20Database%20Scoped%20Configuration%20Options" data-a2a-url="https://www.dbrnd.com/2018/01/sql-server-2016-introduced-database-scoped-configuration-options-maxdop-parameter-sniffing-optimizer/" data-a2a-title="SQL Server 2016: Introduced Database Scoped Configuration Options"></a></p><p>SQL Server 2016 introduced Database Scoped Configuration Options that can set at the database level, which was previously available at the instance level only.</p>
<blockquote><p>In SSMS, you can right click on database -> go to -> option -> find Database Scoped Configuration section.<br />
It introduced main four parameters, which we can set at the database level. </p></blockquote>
<p><strong>Legacy Cardinality Estimation:</strong> It enables you to configure the query optimizer cardinality estimation model.</p>
<p><strong>MAXDOP:</strong> Maximum degree of parallelism for an individual database.</p>
<p><strong>Parameter Sniffing:</strong> Previously, we can disable this feature using trace flag 4136, but now you can ON/OFF Parameter Sniffing at the database level. </p>
<p><strong>Query Optimizer Fixes: </strong> You can enable or disable query optimization hotfixes.</p>
<p><strong>Clear Database Plan:</strong> It allows clearing procedure cache at the database level without impacting other databases.</p>
<p>SQL Server 2016 also introduced one DMV to check the current value of Database Scoped Configurations.</p>
<pre class="crayon-plain-tag">SELECT *FROM sys.database_scoped_configurations</pre> </p>
<p>Database user requires Scoped Configuration permission to execute ALTER SCOPED CONFIGURATION.</p>
<pre class="crayon-plain-tag">GRANT ALTER ANY DATABASE SCOPED CONFIGURATION to UserName;</pre> </p>
<p><strong>Related T-SQL Scripts:</strong></p>
<p><strong>Clear atabase Plan Cache:</strong></p><pre class="crayon-plain-tag">ALTER DATABASE SCOPED CONFIGURATION CLEAR PROCEDURE_CACHE;</pre><p> </p>
<p><strong>Enable Legacy Cardinality Estimation:</strong></p><pre class="crayon-plain-tag">ALTER DATABASE SCOPED CONFIGURATION SET LEGACY_CARDINALITY_ESTIMATION = ON;</pre><p> </p>
<p><strong>Set MAXDOP Value:</strong></p><pre class="crayon-plain-tag">ALTER DATABASE SCOPED CONFIGURATION SET MAXDOP = 3;</pre><p> </p>
<p><strong>Disable Parameter Sniffing:</strong></p><pre class="crayon-plain-tag">ALTER DATABASE SCOPED CONFIGURATION SET PARAMETER_SNIFFING = OFF;</pre><p> </p>
<p><strong>Enable Query Optimizer Fixes:</strong></p><pre class="crayon-plain-tag">ALTER DATABASE SCOPED CONFIGURATION SET QUERY_OPTIMIZER_HOTFIXES = ON;</pre><p> </p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
