<?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>SQL Developer &#8211; Database Research &amp; Development</title>
	<atom:link href="https://www.dbrnd.com/tag/sql-developer/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>Thu, 12 Jan 2017 20:25:28 +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 Interview: Where does DMVs store its data?</title>
		<link>https://www.dbrnd.com/2017/01/sql-server-interview-where-does-dmvs-store-its-data-in-memory-ram/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Wed, 11 Jan 2017 20:23:28 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Interview]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[DMVs]]></category>
		<category><![CDATA[dynamic management views]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[SQL DBA]]></category>
		<category><![CDATA[SQL Developer]]></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=4296</guid>

					<description><![CDATA[Are you SQL Developer or SQL DBA? Whatever you are, you must know about the SQL Server DMVs (Dynamic Management Views). Last week, I was taking interview for SQL DBAs. I had asked few questions like: What do you know about the SQL DMVs? How can we effectively use it? Do you know, Where does [&#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%2F01%2Fsql-server-interview-where-does-dmvs-store-its-data-in-memory-ram%2F&amp;linkname=SQL%20Server%20Interview%3A%20Where%20does%20DMVs%20store%20its%20data%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%2F01%2Fsql-server-interview-where-does-dmvs-store-its-data-in-memory-ram%2F&amp;linkname=SQL%20Server%20Interview%3A%20Where%20does%20DMVs%20store%20its%20data%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%2F01%2Fsql-server-interview-where-does-dmvs-store-its-data-in-memory-ram%2F&amp;linkname=SQL%20Server%20Interview%3A%20Where%20does%20DMVs%20store%20its%20data%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%2F01%2Fsql-server-interview-where-does-dmvs-store-its-data-in-memory-ram%2F&amp;linkname=SQL%20Server%20Interview%3A%20Where%20does%20DMVs%20store%20its%20data%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%2F01%2Fsql-server-interview-where-does-dmvs-store-its-data-in-memory-ram%2F&amp;linkname=SQL%20Server%20Interview%3A%20Where%20does%20DMVs%20store%20its%20data%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%2F01%2Fsql-server-interview-where-does-dmvs-store-its-data-in-memory-ram%2F&amp;linkname=SQL%20Server%20Interview%3A%20Where%20does%20DMVs%20store%20its%20data%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%2F01%2Fsql-server-interview-where-does-dmvs-store-its-data-in-memory-ram%2F&#038;title=SQL%20Server%20Interview%3A%20Where%20does%20DMVs%20store%20its%20data%3F" data-a2a-url="https://www.dbrnd.com/2017/01/sql-server-interview-where-does-dmvs-store-its-data-in-memory-ram/" data-a2a-title="SQL Server Interview: Where does DMVs store its data?"></a></p><p>Are you SQL Developer or SQL DBA? Whatever you are, you must know about the SQL Server DMVs (Dynamic Management Views).</p>
<p>Last week, I was taking interview for SQL DBAs. I had asked few questions like:</p>
<blockquote><p>What do you know about the SQL DMVs?<br />
How can we effectively use it?<br />
Do you know, Where does SQL Server stores the DMVs data?</p></blockquote>
<p>I had found most of the SQL DBA given the wrong answer for the third question, that is about the storage of DMVs.<br />
<em>Most of the time, I got one type of answer like SQL Server stores DMVs data in master &#038; msdb database. </em></p>
<p><strong>This is an absolutely wrong answer.</strong></p>
<p><strong>The correct answer is:</strong> SQL Server doesn&#8217;t store DMV/DMF related data into the physical disk, but it stores directly into the memory. You can read this data directly from the process space of sqlservr.exe.</p>
<blockquote><p>Because of this reason, most of the DBAs are suggesting that you should not restart the SQL Server. It will drive a SQL Server to poor performance.<br />
Because it clears all query cache, buffer cache and wait type statistics.</p></blockquote>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SQL Server: Script to find a Table which has more than 10 Indexes</title>
		<link>https://www.dbrnd.com/2016/10/sql-server-script-to-find-a-table-which-has-more-than-10-indexes-improve-performance/</link>
		
		<dc:creator><![CDATA[Anvesh Patel]]></dc:creator>
		<pubDate>Sat, 29 Oct 2016 16:16:17 +0000</pubDate>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server DBA Script]]></category>
		<category><![CDATA[Anvesh Patel]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database research and development]]></category>
		<category><![CDATA[dbrnd]]></category>
		<category><![CDATA[indexes]]></category>
		<category><![CDATA[SQL Developer]]></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[SYS.INDEXES]]></category>
		<category><![CDATA[T-SQL]]></category>
		<category><![CDATA[TSQL]]></category>
		<guid isPermaLink="false">https://www.dbrnd.com/?p=3422</guid>

					<description><![CDATA[In this post, I am sharing one T-SQL script to find a Table which has more than 10 Indexes in SQL Server. More Indexes on a Table, are creating a performance issue because Indexes also require dedicated CPU I/O for writing it into the Index Pages. More Indexes will slow down the insertion or any [&#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%2F10%2Fsql-server-script-to-find-a-table-which-has-more-than-10-indexes-improve-performance%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20a%20Table%20which%20has%20more%20than%2010%20Indexes" 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%2F10%2Fsql-server-script-to-find-a-table-which-has-more-than-10-indexes-improve-performance%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20a%20Table%20which%20has%20more%20than%2010%20Indexes" 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%2F10%2Fsql-server-script-to-find-a-table-which-has-more-than-10-indexes-improve-performance%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20a%20Table%20which%20has%20more%20than%2010%20Indexes" 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%2F10%2Fsql-server-script-to-find-a-table-which-has-more-than-10-indexes-improve-performance%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20a%20Table%20which%20has%20more%20than%2010%20Indexes" 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%2F10%2Fsql-server-script-to-find-a-table-which-has-more-than-10-indexes-improve-performance%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20a%20Table%20which%20has%20more%20than%2010%20Indexes" 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%2F10%2Fsql-server-script-to-find-a-table-which-has-more-than-10-indexes-improve-performance%2F&amp;linkname=SQL%20Server%3A%20Script%20to%20find%20a%20Table%20which%20has%20more%20than%2010%20Indexes" 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%2F10%2Fsql-server-script-to-find-a-table-which-has-more-than-10-indexes-improve-performance%2F&#038;title=SQL%20Server%3A%20Script%20to%20find%20a%20Table%20which%20has%20more%20than%2010%20Indexes" data-a2a-url="https://www.dbrnd.com/2016/10/sql-server-script-to-find-a-table-which-has-more-than-10-indexes-improve-performance/" data-a2a-title="SQL Server: Script to find a Table which has more than 10 Indexes"></a></p><p>In this post, I am sharing one T-SQL script to find a Table which has more than 10 Indexes in SQL Server. </p>
<blockquote><p>More Indexes on a Table, are creating a performance issue because Indexes also require dedicated CPU I/O for writing it into the Index Pages.<br />
More Indexes will slow down the insertion or any other DML operation of that particular Table. </p></blockquote>
<p><strong>Below is a script to find out tables which are having more indexes:</strong><br />
You can change the value of @threshold.</p>
<pre class="crayon-plain-tag">DECLARE @threshold INT;
SET @threshold = 10;

SELECT
	[s].[name] + '.' + [t].[name] AS TableName
FROM sys.tables AS t
INNER JOIN sys.schemas AS s
	ON [t].[schema_id] = [s].[schema_id]
WHERE EXISTS
(
	SELECT 1 FROM sys.indexes AS i
    WHERE [i].[object_id] = [t].[object_id]
    GROUP BY [i].[object_id]
    HAVING COUNT(*) &gt; @threshold
)
GO</pre> </p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
