<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>MSSQLFUN</title>
	<atom:link href="http://mssqlfun.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://mssqlfun.com</link>
	<description>explore &#38; experience the MSSQL</description>
	<lastBuildDate>Thu, 16 May 2013 11:27:02 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='mssqlfun.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/6a09e171bb631a07dd0f664530bbceaf?s=96&#038;d=http%3A%2F%2Fs2.wp.com%2Fi%2Fbuttonw-com.png</url>
		<title>MSSQLFUN</title>
		<link>http://mssqlfun.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://mssqlfun.com/osd.xml" title="MSSQLFUN" />
	<atom:link rel='hub' href='http://mssqlfun.com/?pushpress=hub'/>
		<item>
		<title>DMV-11 : T-Log space used by transaction&#8230;&#8230;..sys.dm_tran_database_transactions</title>
		<link>http://mssqlfun.com/2013/05/16/dmv-11-t-log-space-used-by-transaction-sys-dm_tran_database_transactions/</link>
		<comments>http://mssqlfun.com/2013/05/16/dmv-11-t-log-space-used-by-transaction-sys-dm_tran_database_transactions/#comments</comments>
		<pubDate>Thu, 16 May 2013 10:57:00 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=520</guid>
		<description><![CDATA[sys.dm_tran_database_transactions DMV (Dynamic Management View), described by BOL as follows: http://msdn.microsoft.com/en-us/library/ms186957.aspx Returns information about transactions at the database level. Some time , T-log space is hugely consumed by database &#38; we are not aware that which transaction is culprit for this. This is useful DMV in such conditions to check T-log space used by each &#8230; <a href="http://mssqlfun.com/2013/05/16/dmv-11-t-log-space-used-by-transaction-sys-dm_tran_database_transactions/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=520&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>sys.dm_tran_database_transactions DMV (Dynamic Management View), described by BOL as follows: <a href="http://msdn.microsoft.com/en-us/library/ms186957.aspx">http://msdn.microsoft.com/en-us/library/ms186957.aspx</a></p>
<p>Returns information about transactions at the database level.</p>
<p>Some time , T-log space is hugely consumed by database &amp; we are not aware that which transaction is culprit for this. This is useful DMV in such conditions to check T-log space used by each transaction on database.</p>
<p><strong><a href="http://msdn.microsoft.com/en-us/library/ms190768(v=sql.90).aspx">Query 1 : </a>Query to check Transaction log space used by each transaction will complete detail</strong></p>
<p>SELECT</p>
<p>ST.SESSION_ID,</p>
<p>DT.TRANSACTION_ID,</p>
<p>DB_NAME(DT.DATABASE_ID) DB_NAME,</p>
<p>DATABASE_TRANSACTION_BEGIN_TIME TRANSACTION_BEGIN_TIME,</p>
<p>CASE DATABASE_TRANSACTION_TYPE</p>
<p>WHEN 1 THEN &#8216;READ/WRITE&#8217;</p>
<p>WHEN 2 THEN &#8216;READ ONLY&#8217;</p>
<p>WHEN 3 THEN &#8216;SYSTEM&#8217; END AS TRANSACTION_TYPE,</p>
<p>CASE DATABASE_TRANSACTION_STATE</p>
<p>WHEN 1 THEN &#8216;NOT INITIALIZED&#8217;</p>
<p>WHEN 3 THEN &#8216;TRANSACTION NO LOG&#8217;</p>
<p>WHEN 4 THEN &#8216;TRANSACTION WITH LOG&#8217;</p>
<p>WHEN 5 THEN &#8216;TRANSACTION PREPARED&#8217;</p>
<p>WHEN 10 THEN &#8216;COMMITED&#8217;</p>
<p>WHEN 11 THEN &#8216;ROLLED BACK&#8217;</p>
<p>WHEN 12 THEN &#8216;COMMITED AND LOG GENERATED&#8217; END AS TRANSACTION_STATE,</p>
<p>SP.HOSTNAME,</p>
<p>SP.LOGINAME,</p>
<p>SP.STATUS,</p>
<p>SP.LASTWAITTYPE,</p>
<p>SQLT.TEXT,</p>
<p>DATABASE_TRANSACTION_LOG_RECORD_COUNT LOG_RECORD_COUNT,</p>
<p>(DATABASE_TRANSACTION_LOG_BYTES_USED + DATABASE_TRANSACTION_LOG_BYTES_RESERVED )/1024 TOTAL_LOG_SPACE_USED_KB,</p>
<p>DATABASE_TRANSACTION_LOG_BYTES_USED LOG_BYTES_USED,</p>
<p>DATABASE_TRANSACTION_LOG_BYTES_RESERVED LOG_BYTES_RESERVED</p>
<p>FROM</p>
<p>SYS.DM_TRAN_DATABASE_TRANSACTIONS DT JOIN</p>
<p>SYS.DM_TRAN_SESSION_TRANSACTIONS ST</p>
<p>ON DT.TRANSACTION_ID=ST.TRANSACTION_ID</p>
<p>JOIN</p>
<p>SYS.SYSPROCESSES SP</p>
<p>ON SP.SPID = ST.SESSION_ID</p>
<p>CROSS APPLY</p>
<p>SYS.DM_EXEC_SQL_TEXT(SP.SQL_HANDLE) SQLT</p>
<p>WHERE</p>
<p>DT.TRANSACTION_ID &gt; 1000 AND ST.SESSION_ID &gt;50</p>
<p><strong>Sample Result</strong></p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/05/image002.png"><img src="http://mssqlfun.files.wordpress.com/2013/05/image002.png?w=960" alt=""   class="alignnone size-full wp-image-522" /></a></p>
<p><strong><a href="http://msdn.microsoft.com/en-us/library/ms190768(v=sql.90).aspx">Remarks</a></strong></p>
<p>1. Meaning of int value for database_transaction_type column</p>
<p>&middot; 1 = Read/write transaction</p>
<p>&middot; 2 = Read-only transaction</p>
<p>&middot; 3 = System transaction</p>
<p>2. All possible state of transactions for database_transaction_state coulmn</p>
<p>&middot; 1 = The transaction has not been initialized.</p>
<p>&middot; 3 = The transaction has been initialized but has not generated any log records.</p>
<p>&middot; 4 = The transaction has generated log records.</p>
<p>&middot; 5 = The transaction has been prepared.</p>
<p>&middot; 10 = The transaction has been committed.</p>
<p>&middot; 11 = The transaction has been rolled back.</p>
<p>&middot; 12 = The transaction is being committed. In this state the log record is being generated, but it has not been materialized or persisted.</p>
<p>3. To use this DMV, <a href="http://msdn.microsoft.com/en-us/library/ms190768(v=sql.90).aspx">User required <strong>VIEW SERVER STATE</strong> permission on the server. </a></p>
<p>4. If column database_transaction_begin_time has NULL then transaction is read only otherwise read write.</p>
<p>5. TRANSACTION_ID &gt; 1000 &amp; SESSION_ID &gt; 50 is used for user transactions &amp; sessions.</p>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p><a href="http://www.facebook.com/mssqlfun">Reference : <strong>Rohit Garg ()</strong></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/520/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/520/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=520&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/05/16/dmv-11-t-log-space-used-by-transaction-sys-dm_tran_database_transactions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/05/image002.png" medium="image" />
	</item>
		<item>
		<title>DMV-10 : Does my database contain edition specific features?&#8230;&#8230;..sys.dm_db_persisted_sku_features</title>
		<link>http://mssqlfun.com/2013/05/13/dmv-10-does-my-database-contain-edition-specific-features-sys-dm_db_persisted_sku_features/</link>
		<comments>http://mssqlfun.com/2013/05/13/dmv-10-does-my-database-contain-edition-specific-features-sys-dm_db_persisted_sku_features/#comments</comments>
		<pubDate>Mon, 13 May 2013 11:27:30 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=513</guid>
		<description><![CDATA[sys.dm_db_persisted_sku_features (Introduced in SQL Server 2008) DMV (Dynamic Management View), described by BOL as follows: http://msdn.microsoft.com/en-in/library/cc280724.aspx Some features of the SQL Server Database Engine change the way that Database Engine stores information in the database files. These features are restricted to specific editions of SQL Server. A database that contains these features cannot be moved &#8230; <a href="http://mssqlfun.com/2013/05/13/dmv-10-does-my-database-contain-edition-specific-features-sys-dm_db_persisted_sku_features/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=513&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>sys.dm_db_persisted_sku_features (Introduced in SQL Server 2008) DMV (Dynamic Management View), described by BOL as follows: <a href="http://msdn.microsoft.com/en-in/library/cc280724.aspx">http://msdn.microsoft.com/en-in/library/cc280724.aspx</a></p>
<p>Some features of the SQL Server Database Engine change the way that Database Engine stores information in the database files. These features are restricted to specific editions of SQL Server. A database that contains these features cannot be moved to an edition of SQL Server that does not support them Use the sys.dm_db_persisted_sku_features dynamic management view to list all edition-specific features that are enabled in the current database.</p>
<p>There are four features that captured by this DMV :</p>
<p>· <strong>Data Compression</strong></p>
<p>· <strong>Partitioning</strong></p>
<p>· <strong>Transparent Data Encryption (TDE) </strong></p>
<p>· <strong>Change Data Capture</strong></p>
<p>DBAs can identify all edition specific features that are enabled within a user database by using the <strong>sys.dm_db_persisted_sku_features</strong> dynamic management view.</p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/05/image001.png"><img class="alignnone size-full wp-image-515" alt="" src="http://mssqlfun.files.wordpress.com/2013/05/image001.png?w=960"   /></a></p>
<p><strong>Query 1 : Check Edition Specific features of select database</strong></p>
<p>SELECT</p>
<p>DB_NAME() DBNAME,</p>
<p>FEATURE_NAME</p>
<p>FROM SYS.DM_DB_PERSISTED_SKU_FEATURES</p>
<p><strong>Remarks</strong></p>
<p>1. To use this DMV, User re<span id="more-513"></span>quired <strong>VIEW DATABASE STATE</strong> permission on the server.</p>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun" rel="nofollow">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/" rel="nofollow">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/513/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/513/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=513&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/05/13/dmv-10-does-my-database-contain-edition-specific-features-sys-dm_db_persisted_sku_features/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/05/image001.png" medium="image" />
	</item>
		<item>
		<title>DMV-9 : Digging out details of CLR Tasks&#8230;&#8230;..sys.dm_clr_tasks</title>
		<link>http://mssqlfun.com/2013/04/29/dmv-9-digging-out-details-of-clr-tasks-sys-dm_clr_tasks/</link>
		<comments>http://mssqlfun.com/2013/04/29/dmv-9-digging-out-details-of-clr-tasks-sys-dm_clr_tasks/#comments</comments>
		<pubDate>Mon, 29 Apr 2013 05:10:15 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/04/29/dmv-9-digging-out-details-of-clr-tasks-sys-dm_clr_tasks/</guid>
		<description><![CDATA[sys.dm_clr_tasks DMV (Dynamic Management View), described by BOL as follows: http://msdn.microsoft.com/en-in/library/ms177528.aspx Returns a row for all common language runtime (CLR) tasks that are currently running. A Transact-SQL batch that contains a reference to a CLR routine creates a separate task for execution of all the managed code in that batch. Multiple statements in the batch &#8230; <a href="http://mssqlfun.com/2013/04/29/dmv-9-digging-out-details-of-clr-tasks-sys-dm_clr_tasks/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=510&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>sys.dm_clr_tasks DMV (Dynamic Management View), described by BOL as follows: <a href="http://msdn.microsoft.com/en-in/library/ms177528.aspx">http://msdn.microsoft.com/en-in/library/ms177528.aspx</a></p>
<p>Returns a row for all common language runtime (CLR) tasks that are currently running. A Transact-SQL batch that contains a reference to a CLR routine creates a separate task for execution of all the managed code in that batch. Multiple statements in the batch that require managed code execution use the same CLR task. The CLR task is responsible for maintaining objects and state pertaining to managed code execution, as well as the transitions between the instance of SQL Server and the common language runtime.</p>
<p>sys.dm_clr_tasks DMV is applicable to you if you have enabled the CLR on your SQL Server instance, and you are using at least one CLR assembly loaded in any of one user databases on your SQL Server instance.</p>
<p>You should look for rows having forced_yield_count column value above zero or that have a last_wait_type of SQLCLR_QUANTUM_PUNISHMENT. This will point that the task previously exceeded its allowed quantum &amp; caused the SQL OS scheduler to intervene and reschedule it at the end of the queue. Value of Column forced_yield_count shows the number of time that this has happened.</p>
<p>If you noticed this, you should talk to your developer for this. This could cause issue for you SQL Server.</p>
<p><strong>How to enable CLR?</strong></p>
<p>EXEC SP_CONFIGURE &#8216;CLR ENABLED&#8217;,1</p>
<p>GO</p>
<p>RECONFIGURE</p>
<p>GO</p>
<p><strong>How to disable CLR?</strong></p>
<p>EXEC SP_CONFIGURE &#8216;CLR ENABLED&#8217;,0</p>
<p>GO</p>
<p>RECONFIGURE</p>
<p>GO</p>
<p><strong>Query 1 : FIND LONG RUNNING SQL/CLR TASKS</strong></p>
<p>SELECT</p>
<p>OS.TASK_ADDRESS,</p>
<p>OS.[STATE],</p>
<p>OS.LAST_WAIT_TYPE,</p>
<p>CLR.[STATE],</p>
<p>CLR.FORCED_YIELD_COUNT</p>
<p>FROM SYS.DM_OS_WORKERS AS OS</p>
<p>INNER JOIN SYS.DM_CLR_TASKS AS CLR</p>
<p>ON (OS.TASK_ADDRESS = CLR.SOS_TASK_ADDRESS)</p>
<p>WHERE CLR.[TYPE] = &#8216;E_TYPE_USER&#8217;;</p>
<p><strong>Remarks</strong></p>
<p>1. To use this DMV, User required <strong>VIEW SERVER STATE</strong> permission on the server.</p>
<p>If you liked this post, do like on Facebook at <a href="http://www.facebook.com/mssqlfun" rel="nofollow">http://www.facebook.com/mssqlfun</a></p>
<p>Reference : Rohit Garg (<a href="http://mssqlfun.com/" rel="nofollow">http://mssqlfun.com/</a>)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/510/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/510/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=510&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/04/29/dmv-9-digging-out-details-of-clr-tasks-sys-dm_clr_tasks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>DMV-8 : Check Space consumed by Database&#8230;&#8230;..sys.dm_db_file_space_usage</title>
		<link>http://mssqlfun.com/2013/04/24/dmv-8-check-space-consumed-by-database-sys-dm_db_file_space_usage/</link>
		<comments>http://mssqlfun.com/2013/04/24/dmv-8-check-space-consumed-by-database-sys-dm_db_file_space_usage/#comments</comments>
		<pubDate>Wed, 24 Apr 2013 11:11:47 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/04/24/dmv-8-check-space-consumed-by-database-sys-dm_db_file_space_usage/</guid>
		<description><![CDATA[sys.dm_db_file_space_usage DMV (Dynamic Management View), described by BOL as follows: http://msdn.microsoft.com/en-us/library/ms174412.aspx Returns space usage information for each file in the database. It’s most commonly used DMV to check total used &#38; available free space in database. Before SQL Server 2012, it applicable only to the tempdb database Key Columns :- database_id – identifies the database &#8230; <a href="http://mssqlfun.com/2013/04/24/dmv-8-check-space-consumed-by-database-sys-dm_db_file_space_usage/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=504&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>sys.dm_db_file_space_usage DMV (Dynamic Management View), described by BOL as follows: <a href="http://msdn.microsoft.com/en-us/library/ms174412.aspx">http://msdn.microsoft.com/en-us/library/ms174412.aspx</a></p>
<p>Returns space usage information for each file in the database.</p>
<p>It’s most commonly used DMV to check total used &amp; available free space in database. Before SQL Server 2012, it applicable only to the tempdb database</p>
<p><strong>Key Columns :-</strong></p>
<ul>
<li><strong>database_id – identifies the database on basis on database id </strong></li>
<li><strong>unallocated_extent_page_count – Total number of pages that are in unallocated extents (8 contiguous 8K pages) that are reserved in the file but not currently allocated to objects. Unused pages in used extents (having any active data) will not be included in this total.</strong></li>
<li><strong>version_store_reserved_page_count – Number of pages reserved to support snapshot isolation transactions</strong></li>
<li><strong>mixed_extent_page_count – Number of extents that have pages of multiple types (user objects, internal objects, version store, Index Allocation Map (IAM) pages, etc.)</strong></li>
</ul>
<p><strong>Query 1 : Calculate total, used &amp; unused in databases</strong></p>
<p>SELECT</p>
<p>DB_NAME(SU.DATABASE_ID) DBNAME,</p>
<p>MF.PHYSICAL_NAME,</p>
<p>SU.ALLOCATED_EXTENT_PAGE_COUNT*8/1024 ALLOCATED_EXTENT_SIZE_MB,</p>
<p>SU.TOTAL_PAGE_COUNT*8/1024 TOTAL_SIZE_MB,</p>
<p>SU.UNALLOCATED_EXTENT_PAGE_COUNT*8/1024 UNALLOCATED_EXTENT_SIZE_MB</p>
<p>FROM</p>
<p>SYS.DM_DB_FILE_SPACE_USAGE SU</p>
<p>JOIN SYS.MASTER_FILES AS MF</p>
<p>ON MF.DATABASE_ID = SU.DATABASE_ID</p>
<p>AND MF.FILE_ID = SU.FILE_ID</p>
<p><strong>Query 2 : Calculate Free space in TempDB</strong></p>
<p>SELECT</p>
<p>UNALLOCATED_EXTENT_PAGE_COUNT/128 [FREESPCAE<br />
(MB)]</p>
<p>FROM</p>
<p>SYS.DM_DB_FILE_SPACE_USAGE</p>
<p><strong>Remarks</strong></p>
<p>1. User required <strong>VIEW SERVER STATE</strong> permission on the server.</p>
<p>2. sys.dm_db_file_space_usage did not include the LDF file size whereas SP_Spaceused include LDF file size while calculating total database size.</p>
<p>If you liked this post, do like on Facebook at <a href="http://www.facebook.com/mssqlfun" rel="nofollow">http://www.facebook.com/mssqlfun</a></p>
<p>Reference : <strong>Rohit Garg</strong> (<a href="http://mssqlfun.com/" rel="nofollow">http://mssqlfun.com/</a>)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/504/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/504/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=504&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/04/24/dmv-8-check-space-consumed-by-database-sys-dm_db_file_space_usage/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Cumulative Update &#8211; 7 for SQL Server 2012 RTM Is Now Available !</title>
		<link>http://mssqlfun.com/2013/04/22/cumulative-update-7-for-sql-server-2012-rtm-is-now-available/</link>
		<comments>http://mssqlfun.com/2013/04/22/cumulative-update-7-for-sql-server-2012-rtm-is-now-available/#comments</comments>
		<pubDate>Mon, 22 Apr 2013 10:29:03 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/04/22/cumulative-update-7-for-sql-server-2012-rtm-is-now-available/</guid>
		<description><![CDATA[The 7th cumulative update release for SQL Server 2012 RTM is now available. Cumulative Update 7 contains all the hotfixes released since the initial release of SQL Server 2012 RTM. Those who are facing severe issues with their environment, they can plan to test CU7 in test environment &#38; then move to Production after satisfactory &#8230; <a href="http://mssqlfun.com/2013/04/22/cumulative-update-7-for-sql-server-2012-rtm-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=502&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a>The 7th cumulative update release for SQL Server 2012 RTM is now available. Cumulative Update 7 contains all the hotfixes released since the initial release of SQL Server 2012 RTM.</a></p>
<p><a></a></p>
<p><a></a></p>
<p>Those who are facing severe issues with their environment, they can plan to test CU7 in test environment &amp; then move to Production after satisfactory results.</p>
<p><strong>KB Article For CU7 of SQL Server 2012 </strong></p>
<p>&middot; CU#7 KB Article: <a href="http://support.microsoft.com/kb/2823247">http://support.microsoft.com/kb/2823247</a></p>
<p><strong>Previous Cumulative Update KB Articles of SQL Server 2012</strong></p>
<p>&middot; CU#6 KB Article: <a href="http://support.microsoft.com/kb/2728897">http://support.microsoft.com/kb/2728897</a></p>
<p><strong>&middot; </strong>CU#5 KB Article: <a href="http://support.microsoft.com/kb/2777772">http://support.microsoft.com/kb/2777772</a></p>
<p>&middot; CU#4 KB Article: <a href="http://support.microsoft.com/kb/2758687">http://support.microsoft.com/kb/2758687</a></p>
<p>&middot; CU#3 KB Article: <a href="http://support.microsoft.com/kb/2723749">http://support.microsoft.com/kb/2723749</a></p>
<p>&middot; CU#2 KB Article: <a href="http://support.microsoft.com/kb/2703275">http://support.microsoft.com/kb/2703275</a></p>
<p>&middot; CU#1 KB Article: <a href="http://support.microsoft.com/kb/2679368">http://support.microsoft.com/kb/2679368</a></p>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/">http://www.facebook.com/</a></strong>mssqlfun</p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a><strong>)</strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/502/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/502/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=502&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/04/22/cumulative-update-7-for-sql-server-2012-rtm-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Cumulative Update &#8211; 6 for SQL Server 2008 R2 Service Pack 2 Is Now Available !</title>
		<link>http://mssqlfun.com/2013/04/19/cumulative-update-6-for-sql-server-2008-r2-service-pack-2-is-now-available/</link>
		<comments>http://mssqlfun.com/2013/04/19/cumulative-update-6-for-sql-server-2008-r2-service-pack-2-is-now-available/#comments</comments>
		<pubDate>Fri, 19 Apr 2013 10:27:41 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/04/19/cumulative-update-6-for-sql-server-2008-r2-service-pack-2-is-now-available/</guid>
		<description><![CDATA[The 6th cumulative update release for SQL Server 2008 R2 Service Pack 2 is now available for download at the Microsoft Support site. Cumulative Update 6 contains all the hotfixes released since the initial release of SQL Server 2008 R2 SP2. Those who are facing severe issues with their environment, they can plan to test &#8230; <a href="http://mssqlfun.com/2013/04/19/cumulative-update-6-for-sql-server-2008-r2-service-pack-2-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=500&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a>The 6th cumulative update release for SQL Server 2008 R2 Service Pack 2 is now available for download at the Microsoft Support site. Cumulative Update 6 contains all the hotfixes released since the initial release of SQL Server 2008 R2 SP2.</a></p>
<p><a></a></p>
<p><a></a></p>
<p>Those who are facing severe issues with their environment, they can plan to test CU6 in test environment &amp; then move to Production after satisfactory results.</p>
<p>To other, I suggest to wait for SP3 final release to deploy on your production environment, to have consolidate build.</p>
<p><strong>KB Article For CU5 of SQL Server 2008 R2 SP2</strong></p>
<p>&middot; CU#6 KB Article: <a href="http://support.microsoft.com/kb/2830140">http://support.microsoft.com/kb/2830140</a></p>
<p><strong>Previous Cumulative Update KB Articles:</strong></p>
<ul>
<li>CU#5 KB Article: <a href="http://support.microsoft.com/kb/2797460">http://support.microsoft.com/kb/2797460</a></li>
<li>CU#4 KB Article: <a href="http://support.microsoft.com/kb/2777358">http://support.microsoft.com/kb/2777358</a></li>
<li>CU#3 KB Article: <a href="http://support.microsoft.com/kb/2754552">http://support.microsoft.com/kb/2754552</a></li>
<li>CU#2 KB Article: <a href="http://support.microsoft.com/kb/2740411">http://support.microsoft.com/kb/2740411</a></li>
<li>CU#1 KB Article: <a href="http://support.microsoft.com/kb/2720425">http://support.microsoft.com/kb/2720425</a></li>
</ul>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a><strong>)</strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/500/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/500/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=500&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/04/19/cumulative-update-6-for-sql-server-2008-r2-service-pack-2-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Cumulative Update &#8211; 12 for SQL Server 2008 R2 Service Pack 1 Is Now Available !</title>
		<link>http://mssqlfun.com/2013/04/17/cumulative-update-12-for-sql-server-2008-r2-service-pack-1-is-now-available/</link>
		<comments>http://mssqlfun.com/2013/04/17/cumulative-update-12-for-sql-server-2008-r2-service-pack-1-is-now-available/#comments</comments>
		<pubDate>Wed, 17 Apr 2013 10:27:49 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[CU]]></category>
		<category><![CDATA[KB]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[Sql Server 2008 R2]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/04/17/cumulative-update-12-for-sql-server-2008-r2-service-pack-1-is-now-available/</guid>
		<description><![CDATA[The 12th cumulative update release for SQL Server 2008 R2 Service Pack 1 is now available for download at the Microsoft Support site. Cumulative Update 12 contains all the hotfixes released since the initial release of SQL Server 2008 R2 SP1. &#160; &#160; Those who are facing severe issues with their environment, they can plan &#8230; <a href="http://mssqlfun.com/2013/04/17/cumulative-update-12-for-sql-server-2008-r2-service-pack-1-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=489&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a>The 12th cumulative update release for SQL Server 2008 R2 Service Pack 1 is now available for download at the Microsoft Support site. Cumulative Update 12 contains all the hotfixes released since the initial release of SQL Server 2008 R2 SP1.</a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Those who are facing severe issues with their environment, they can plan to test CU12 in test environment &amp; then move to Production after satisfactory results.</p>
<p><strong>For CU12 of SQL Server 2008 R2 SP1</strong></p>
<p><strong>· </strong>CU#12 KB Article: <a href="http://support.microsoft.com/kb/2828727">http://support.microsoft.com/kb/2828727</a></p>
<p><strong>Previous Cumulative Update KB Articles:</strong></p>
<ul>
<li>CU#11 KB Article: <a href="http://support.microsoft.com/kb/2812683">http://support.microsoft.com/kb/2812683</a></li>
<li>CU#10 KB Article: <a href="http://support.microsoft.com/kb/2783135">http://support.microsoft.com/kb/2783135</a></li>
<li>CU#9 KB Article: <a href="http://support.microsoft.com/kb/2756574">http://support.microsoft.com/kb/2756574</a></li>
<li>CU#8 KB Article: <a href="http://support.microsoft.com/kb/2723743">http://support.microsoft.com/kb/2723743</a></li>
<li>CU#7 KB Article: <a href="http://support.microsoft.com/kb/2703282">http://support.microsoft.com/kb/2703282</a></li>
<li>CU#6 KB Article: <a href="http://support.microsoft.com/kb/2679367">http://support.microsoft.com/kb/2679367</a></li>
<li>CU#5 KB Article: <a href="http://support.microsoft.com/kb/2659694">http://support.microsoft.com/kb/2659694</a></li>
<li>CU#4 KB Article: <a href="http://support.microsoft.com/kb/2633146">http://support.microsoft.com/kb/2633146</a></li>
<li>CU#3 KB Article: <a href="http://support.microsoft.com/kb/2591748">http://support.microsoft.com/kb/2591748</a></li>
<li>CU#2 KB Article: <a href="http://support.microsoft.com/kb/2567714">http://support.microsoft.com/kb/2567714</a></li>
<li>CU#1 KB Article: <a href="http://support.microsoft.com/kb/2544793">http://support.microsoft.com/kb/2544793</a></li>
</ul>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a><strong>)</strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/489/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/489/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=489&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/04/17/cumulative-update-12-for-sql-server-2008-r2-service-pack-1-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>DMV-7 : Find Queries waiting for memory ?&#8230;&#8230;..sys.dm_exec_query_memory_grants</title>
		<link>http://mssqlfun.com/2013/04/15/dmv-7-find-queries-waiting-for-memory-sys-dm_exec_query_memory_grants/</link>
		<comments>http://mssqlfun.com/2013/04/15/dmv-7-find-queries-waiting-for-memory-sys-dm_exec_query_memory_grants/#comments</comments>
		<pubDate>Mon, 15 Apr 2013 06:36:22 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[DMV]]></category>
		<category><![CDATA[Dynamic Management View]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[sys.dm_exec_connections]]></category>
		<category><![CDATA[SYS.DM_EXEC_QUERY_MEMORY_GRANTS]]></category>
		<category><![CDATA[SYS.DM_EXEC_QUERY_PLAN]]></category>
		<category><![CDATA[SYS.DM_EXEC_SQL_TEXT]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/04/15/dmv-7-find-queries-waiting-for-memory-sys-dm_exec_query_memory_grants/</guid>
		<description><![CDATA[sys.dm_exec_query_memory_grants DMV (Dynamic Management View), described by BOL as follows : http://msdn.microsoft.com/en-IN/library/ms365393.aspx Returns information about the queries that have acquired a memory grant or that still require a memory grant to execute. Queries that do not have to wait on a memory grant will not appear in this view. This DMV helps in finding queries &#8230; <a href="http://mssqlfun.com/2013/04/15/dmv-7-find-queries-waiting-for-memory-sys-dm_exec_query_memory_grants/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=487&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>sys.dm_exec_query_memory_grants DMV (Dynamic Management View), described by BOL as follows : <a href="http://msdn.microsoft.com/en-IN/library/ms365393.aspx">http://msdn.microsoft.com/en-IN/library/ms365393.aspx</a></p>
<p>Returns information about the queries that have acquired a memory grant or that still require a memory grant to execute. Queries that do not have to wait on a memory grant will not appear in this view.</p>
<p>This DMV helps in finding queries that are waiting (or recently had to wait) for a memory grant. This particular DMV works with SQL Server 2005, 2008, and 2008 R2. There were some new columns added for SQL Server 2008 and above.</p>
<p>You should periodically run this query multiple times in regular intervals and need to look for rows returned each time. If you do see a lot of rows returned each time, then it could be an indication of internal memory pressure. It will help you to identify queries that are requesting relatively large memory grants, perhaps because they are poorly written or they’re missing indexes that make the query more expensive.</p>
<p><strong>Query 1 : Details of queries required memory to execute </strong></p>
<p>SELECT DB_NAME(ST.DBID) AS [DATABASENAME],</p>
<p>MG.REQUESTED_MEMORY_KB ,</p>
<p>MG.IDEAL_MEMORY_KB ,</p>
<p>MG.REQUEST_TIME ,</p>
<p>MG.GRANT_TIME ,</p>
<p>MG.QUERY_COST ,</p>
<p>MG.DOP ,</p>
<p>ST.[TEXT],</p>
<p>QP.QUERY_PLAN</p>
<p>FROM SYS.DM_EXEC_QUERY_MEMORY_GRANTS AS MG</p>
<p>CROSS APPLY SYS.DM_EXEC_SQL_TEXT(PLAN_HANDLE) AS ST</p>
<p>CROSS APPLY SYS.DM_EXEC_QUERY_PLAN(MG.PLAN_HANDLE) AS QP</p>
<p>ORDER BY MG.REQUESTED_MEMORY_KB DESC ;</p>
<p><strong>Remarks</strong></p>
<p>1. User required <strong>VIEW SERVER STATE</strong> permission on the server.</p>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a><strong>)</strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/487/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/487/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=487&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/04/15/dmv-7-find-queries-waiting-for-memory-sys-dm_exec_query_memory_grants/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>DMV-6 : How well my store procedure doing ?&#8230;&#8230;..sys.dm_exec_procedure_stats</title>
		<link>http://mssqlfun.com/2013/04/10/dmv-6-how-well-my-store-procedure-doing-sys-dm_exec_procedure_stats/</link>
		<comments>http://mssqlfun.com/2013/04/10/dmv-6-how-well-my-store-procedure-doing-sys-dm_exec_procedure_stats/#comments</comments>
		<pubDate>Wed, 10 Apr 2013 05:07:05 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[DMV]]></category>
		<category><![CDATA[Dynamic Management View]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[sys.dm_exec_connections]]></category>
		<category><![CDATA[SYS.DM_EXEC_PROCEDURE_STATS]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/04/10/dmv-6-how-well-my-store-procedure-doing-sys-dm_exec_procedure_stats/</guid>
		<description><![CDATA[sys.dm_exec_procedure_stats DMV (Dynamic Management View), described by BOL as follows : http://msdn.microsoft.com/en-us/library/cc280701.aspx Returns aggregate performance statistics for cached stored procedures. The view con­tains one row per stored procedure, and the lifetime of the row is as long as the stored procedure remains cached. When a stored procedure is removed from the cache, the cor­responding row &#8230; <a href="http://mssqlfun.com/2013/04/10/dmv-6-how-well-my-store-procedure-doing-sys-dm_exec_procedure_stats/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=484&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>sys.dm_exec_procedure_stats DMV (Dynamic Management View), described by BOL as follows : <a href="http://msdn.microsoft.com/en-us/library/cc280701.aspx">http://msdn.microsoft.com/en-us/library/cc280701.aspx</a></p>
<p>Returns aggregate performance statistics for cached stored procedures. The view con­tains one row per stored procedure, and the lifetime of the row is as long as the stored procedure remains cached. When a stored procedure is removed from the cache, the cor­responding row is eliminated from this view. At that time, a Performance Statistics SQL trace event is raised similar to sys.dm_exec_query_stats.</p>
<p>This DMV is new to SQL Server 2008 so you can use it only in SQL Server 2008 onwards. You can get similar data out of sys.dm_exec_cached_plans, which will work on SQL Server 2005. This DMV allows you to discover a lot of very interesting and important performance information about your cached stored procedures.</p>
<p><strong>Query 1 : Details of cached procedures </strong></p>
<p>SELECT CASE WHEN DATABASE_ID = 32767 THEN &#8216;RESOURCE&#8217; ELSE DB_NAME(DATABASE_ID)END AS DBNAME</p>
<p>,OBJECT_SCHEMA_NAME(OBJECT_ID,DATABASE_ID) AS [SCHEMA_NAME]</p>
<p>,OBJECT_NAME(OBJECT_ID,DATABASE_ID)AS [OBJECT_NAME]</p>
<p>,*</p>
<p>FROM SYS.DM_EXEC_PROCEDURE_STATS</p>
<p><strong>Query 2 : Details of procedure with total &amp; average CPU, logical reads , logical writes &amp; physical reads</strong></p>
<p>SELECT CASE WHEN DATABASE_ID = 32767 THEN &#8216;RESOURCE&#8217; ELSE DB_NAME(DATABASE_ID)END AS DBNAME</p>
<p>,OBJECT_SCHEMA_NAME(OBJECT_ID,DATABASE_ID) AS [SCHEMA_NAME]</p>
<p>,OBJECT_NAME(OBJECT_ID,DATABASE_ID)AS [OBJECT_NAME]</p>
<p>,CACHED_TIME</p>
<p>,LAST_EXECUTION_TIME</p>
<p>,EXECUTION_COUNT</p>
<p>,TOTAL_WORKER_TIME / EXECUTION_COUNT AS AVG_CPU</p>
<p>,TOTAL_ELAPSED_TIME / EXECUTION_COUNT AS AVG_ELAPSED</p>
<p>,TOTAL_LOGICAL_READS</p>
<p>,TOTAL_LOGICAL_READS / EXECUTION_COUNT AS AVG_LOGICAL_READS</p>
<p>,TOTAL_LOGICAL_WRITES</p>
<p>,TOTAL_LOGICAL_WRITES / EXECUTION_COUNT AS AVG_LOGICAL_WRITES</p>
<p>,TOTAL_PHYSICAL_READS</p>
<p>,TOTAL_PHYSICAL_READS / EXECUTION_COUNT AS AVG_PHYSICAL_READS</p>
<p>FROM SYS.DM_EXEC_PROCEDURE_STATS</p>
<p>ORDER BY AVG_LOGICAL_READS DESC</p>
<p><strong>Remarks</strong></p>
<p>1. User required <strong>VIEW SERVER STATE</strong> permission on the server.</p>
<p>2. This DMV will capture the details of 3 objects types :</p>
<p>a. SQL_STORED_PROCEDURE</p>
<p>b. CLR_STORED_PROCEDURE</p>
<p>c. EXTENDED_STORED_PROCEDURE</p>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a><strong>)</strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/484/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/484/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=484&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/04/10/dmv-6-how-well-my-store-procedure-doing-sys-dm_exec_procedure_stats/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>DMV-5 : Queries runing are adhoc or proc , single or multi use ?&#8230;&#8230;..sys.dm_exec_cached_plans</title>
		<link>http://mssqlfun.com/2013/04/08/dmv-5-queries-runing-are-adhoc-or-proc-single-or-multi-use-sys-dm_exec_cached_plans/</link>
		<comments>http://mssqlfun.com/2013/04/08/dmv-5-queries-runing-are-adhoc-or-proc-single-or-multi-use-sys-dm_exec_cached_plans/#comments</comments>
		<pubDate>Mon, 08 Apr 2013 05:10:35 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[DMV]]></category>
		<category><![CDATA[Dynamic Management View]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[SYS.DM_EXEC_CACHED_PLANS]]></category>
		<category><![CDATA[SYS.DM_EXEC_SQL_TEXT]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/04/08/dmv-5-queries-runing-are-adhoc-or-proc-single-or-multi-use-sys-dm_exec_cached_plans/</guid>
		<description><![CDATA[sys.dm_exec_cached_plans DMV (Dynamic Management View), described by BOL as follows : http://msdn.microsoft.com/en-us/library/ms187404.aspx Returns a row for each query plan that is cached by SQL Server for faster query execu­tion. You can use this dynamic management view to find cached query plans, cached query text, the amount of memory taken by cached plans, and the reuse &#8230; <a href="http://mssqlfun.com/2013/04/08/dmv-5-queries-runing-are-adhoc-or-proc-single-or-multi-use-sys-dm_exec_cached_plans/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=483&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>sys.dm_exec_cached_plans DMV (Dynamic Management View), described by BOL as follows : <a href="http://msdn.microsoft.com/en-us/library/ms187404.aspx">http://msdn.microsoft.com/en-us/library/ms187404.aspx</a></p>
<p>Returns a row for each query plan that is cached by SQL Server for faster query execu­tion. You can use this dynamic management view to find cached query plans, cached query text, the amount of memory taken by cached plans, and the reuse count of the cached plans.</p>
<p>sys.dm_exec_cached_plans provide execution related details like no. of queries comes under adhoc or proc section. It help is understanding the query type &amp; performance improvisation by looking into heavily running adhoc queries.</p>
<p><strong>Query 1 : Memory used by cache plan of each database </strong></p>
<p>SELECT</p>
<p>CP.CACHEOBJTYPE,</p>
<p>CP.OBJTYPE,</p>
<p>CASE WHEN ST.DBID = 32767 THEN &#8216;RESOURCEDB&#8217; ELSE DB_NAME(ST.DBID) END AS DATABASE_NAME,</p>
<p>SUM(CASE WHEN CP.USECOUNTS &lt;= 1 THEN 1 ELSE 0 END) AS SINGLE_USE_COUNT,</p>
<p>SUM(CASE WHEN CP.USECOUNTS &gt; 1 THEN 1 ELSE 0 END) AS MULTI_USE_COUNT,</p>
<p>AVG(CASE WHEN CP.USECOUNTS &gt; 1 THEN CP.USECOUNTS ELSE NULL END) AS MULTI_USE_AVG_USE_COUNT,</p>
<p>(SUM(CASE WHEN CP.USECOUNTS &lt;= 1 THEN CP.SIZE_IN_BYTES ELSE 0 END) / (1024 * 1024)) AS SINGLE_USE_SIZE_IN_MBYTES,</p>
<p>(SUM(CASE WHEN CP.USECOUNTS &gt; 1 THEN CP.SIZE_IN_BYTES ELSE 0 END) / (1024 * 1024)) AS MULTI_USE_SIZE_IN_MBYTES,</p>
<p>(SUM(CP.SIZE_IN_BYTES) / (1024 * 1024)) AS TOTAL_SIZE_IN_MBYTES</p>
<p>FROM</p>
<p>SYS.DM_EXEC_CACHED_PLANS AS CP</p>
<p>OUTER APPLY SYS.DM_EXEC_SQL_TEXT(CP.PLAN_HANDLE) AS ST</p>
<p>GROUP BY</p>
<p>CP.CACHEOBJTYPE,</p>
<p>CP.OBJTYPE,</p>
<p>CASE WHEN ST.DBID = 32767 THEN &#8216;RESOURCEDB&#8217; ELSE DB_NAME(ST.DBID) END</p>
<p>ORDER BY</p>
<p>CP.CACHEOBJTYPE,</p>
<p>CP.OBJTYPE,</p>
<p>CASE WHEN ST.DBID = 32767 THEN &#8216;RESOURCEDB&#8217; ELSE DB_NAME(ST.DBID) END</p>
<p><strong>Query 2 : Find single-use, ad-hoc queries</strong></p>
<p>SELECT ST.[TEXT] ,</p>
<p>CASE WHEN ST.DBID = 32767 THEN &#8216;RESOURCEDB&#8217; ELSE DB_NAME(ST.DBID) END AS DATABASE_NAME,</p>
<p>CP.SIZE_IN_BYTES</p>
<p>FROM</p>
<p>SYS.DM_EXEC_CACHED_PLANS AS CP</p>
<p>CROSS APPLY SYS.DM_EXEC_SQL_TEXT(CP.PLAN_HANDLE) AS ST</p>
<p>WHERE CP.CACHEOBJTYPE = &#8216;COMPILED PLAN&#8217;</p>
<p>AND CP.OBJTYPE = &#8216;ADHOC&#8217;</p>
<p>AND CP.USECOUNTS = 1</p>
<p>ORDER BY CP.SIZE_IN_BYTES DESC</p>
<p><strong>Remarks</strong></p>
<p>1. User required <strong>VIEW SERVER STATE</strong> permission on the server.</p>
<p>If you liked this post, do like on Facebook at <strong><a href="https://www.facebook.com/mssqlfun">https://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a><strong>)</strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/483/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/483/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=483&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/04/08/dmv-5-queries-runing-are-adhoc-or-proc-single-or-multi-use-sys-dm_exec_cached_plans/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>DMV-4 : Find top most expensive cached queries ?&#8230;&#8230;..sys.dm_exec_query_stats</title>
		<link>http://mssqlfun.com/2013/04/03/dmv-4-find-top-most-expensive-cached-queries-sys-dm_exec_query_stats/</link>
		<comments>http://mssqlfun.com/2013/04/03/dmv-4-find-top-most-expensive-cached-queries-sys-dm_exec_query_stats/#comments</comments>
		<pubDate>Wed, 03 Apr 2013 05:22:09 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[DMV]]></category>
		<category><![CDATA[Dynamic Management View]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[SYS.DM_EXEC_QUERY_PLAN]]></category>
		<category><![CDATA[SYS.DM_EXEC_QUERY_STATS]]></category>
		<category><![CDATA[SYS.DM_EXEC_SQL_TEXT]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/04/03/dmv-4-find-top-most-expensive-cached-queries-sys-dm_exec_query_stats/</guid>
		<description><![CDATA[sys.dm_exec_query_stats DMV (Dynamic Management View), described in BOL as follows : http://msdn.microsoft.com/en-us/library/ms189741.aspx Returns aggregate performance statistics for cached query plans. The view contains one row per query statement within the cached plan, and the lifetime of the rows are tied to the plan itself. When a plan is removed from the cache, the corresponding rows &#8230; <a href="http://mssqlfun.com/2013/04/03/dmv-4-find-top-most-expensive-cached-queries-sys-dm_exec_query_stats/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=482&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>sys.dm_exec_query_stats DMV (Dynamic Management View), described in BOL as follows : <a href="http://msdn.microsoft.com/en-us/library/ms189741.aspx">http://msdn.microsoft.com/en-us/library/ms189741.aspx</a></p>
<p>Returns aggregate performance statistics for cached query plans. The view contains one row per query statement within the cached plan, and the lifetime of the rows are tied to the plan itself. When a plan is removed from the cache, the corresponding rows are eliminated from this view. An initial query of sys.dm_exec_query_stats might produce inaccurate results if there is a workload currently executing on the server. More accurate results may be determined by rerunning the query.</p>
<p>sys.dm_exec_query_stats provides a wealth of performance statistics for cached query plans. It’s a very useful DMV to get cached query details for performance &amp; server load analysis.</p>
<p><strong>Query 1 : Top 10 total CPU consuming queries </strong></p>
<p>SELECT TOP 10</p>
<p>QT.TEXT AS STATEMENT_TEXT,</p>
<p>QP.QUERY_PLAN,</p>
<p>QS.TOTAL_WORKER_TIME AS CPU_TIME</p>
<p>FROM SYS.DM_EXEC_QUERY_STATS QS</p>
<p>CROSS APPLY SYS.DM_EXEC_SQL_TEXT (QS.SQL_HANDLE) AS QT</p>
<p>CROSS APPLY SYS.DM_EXEC_QUERY_PLAN (QS.PLAN_HANDLE) AS QP</p>
<p>ORDER BY TOTAL_WORKER_TIME DESC</p>
<p><strong>Query 2 : Top 10 average CPU consuming queries </strong></p>
<p>SELECT TOP 10</p>
<p>TOTAL_WORKER_TIME ,</p>
<p>EXECUTION_COUNT ,</p>
<p>TOTAL_WORKER_TIME / EXECUTION_COUNT AS [AVG CPU TIME] ,</p>
<p>QT.TEXT AS QUERYTEXT</p>
<p>FROM SYS.DM_EXEC_QUERY_STATS QS</p>
<p>CROSS APPLY SYS.DM_EXEC_SQL_TEXT(QS.PLAN_HANDLE) AS QT</p>
<p>ORDER BY QS.TOTAL_WORKER_TIME DESC ;</p>
<p><strong>Query 3 : Top 10 I/O intensive queries</strong></p>
<p>SELECT TOP 10</p>
<p>TOTAL_LOGICAL_READS,</p>
<p>TOTAL_LOGICAL_WRITES,</p>
<p>EXECUTION_COUNT,</p>
<p>TOTAL_LOGICAL_READS+TOTAL_LOGICAL_WRITES AS [IO_TOTAL],</p>
<p>QT.TEXT AS QUERY_TEXT,</p>
<p>DB_NAME(QT.DBID) AS DATABASE_NAME,</p>
<p>QT.OBJECTID AS OBJECT_ID</p>
<p>FROM SYS.DM_EXEC_QUERY_STATS QS</p>
<p>CROSS APPLY SYS.DM_EXEC_SQL_TEXT(SQL_HANDLE) QT</p>
<p>WHERE TOTAL_LOGICAL_READS+TOTAL_LOGICAL_WRITES &gt; 0</p>
<p>ORDER BY [IO_TOTAL] DESC</p>
<p><strong>Query 4 : Execution count of each query</strong></p>
<p>SELECT QS.EXECUTION_COUNT,</p>
<p>QT.TEXT AS QUERY_TEXT,</p>
<p>QT.DBID,</p>
<p>DBNAME= DB_NAME (QT.DBID),</p>
<p>QT.OBJECTID,</p>
<p>QS.TOTAL_ROWS,</p>
<p>QS.LAST_ROWS,</p>
<p>QS.MIN_ROWS,</p>
<p>QS.MAX_ROWS</p>
<p>FROM SYS.DM_EXEC_QUERY_STATS AS QS</p>
<p>CROSS APPLY SYS.DM_EXEC_SQL_TEXT(QS.SQL_HANDLE) AS QT</p>
<p>ORDER BY QS.EXECUTION_COUNT DESC</p>
<p><strong>Remarks</strong></p>
<p>1. Statistics in the view are updated when a query is completed.</p>
<p>2. User required <strong>VIEW SERVER STATE</strong> permission on the server.</p>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a><strong>)</strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/482/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/482/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=482&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/04/03/dmv-4-find-top-most-expensive-cached-queries-sys-dm_exec_query_stats/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>DMV-3 : What is currently going on ?&#8230;&#8230;..sys.dm_exec_requests</title>
		<link>http://mssqlfun.com/2013/04/01/dmv-3-what-is-currently-going-on-sys-dm_exec_requests-2/</link>
		<comments>http://mssqlfun.com/2013/04/01/dmv-3-what-is-currently-going-on-sys-dm_exec_requests-2/#comments</comments>
		<pubDate>Mon, 01 Apr 2013 05:12:14 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[DMV]]></category>
		<category><![CDATA[Dynamic Management View]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[sys.dm_exec_connections]]></category>
		<category><![CDATA[SYS.DM_EXEC_SQL_TEXT]]></category>
		<category><![CDATA[SYS.DM_EXEC_SESSIONS]]></category>
		<category><![CDATA[SYS.DM_EXEC_REQUESTS]]></category>
		<category><![CDATA[SYS.DM_EXEC_QUERY_PLAN]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/04/01/dmv-3-what-is-currently-going-on-sys-dm_exec_requests-2/</guid>
		<description><![CDATA[sys.dm_exec_requests DMV (Dynamic Management View), described by BOL as follows: http://msdn.microsoft.com/en-us/library/ms177648.aspx Returns information about each request that is executing within SQL Server. sys.dm_exec_requests DMV is used to get details of currently running sessions. This DMV help us is getting details like used database, transaction isolation level, open transaction count, status, blocked session, percentage of task &#8230; <a href="http://mssqlfun.com/2013/04/01/dmv-3-what-is-currently-going-on-sys-dm_exec_requests-2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=477&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>sys.dm_exec_requests </strong>DMV (Dynamic Management View), described by BOL as follows: <a href="http://msdn.microsoft.com/en-us/library/ms177648.aspx">http://msdn.microsoft.com/en-us/library/ms177648.aspx</a></p>
<p>Returns information about each request that is executing within SQL Server.</p>
<p>sys.dm_exec_requests DMV is used to get details of currently running sessions. This DMV help us is getting details like used database, transaction isolation level, open transaction count, status, blocked session, percentage of task completed etc.</p>
<p><strong>Query 1 : Complete details of currently running queries </strong></p>
<p>SELECT</p>
<p>R.SESSION_ID,</p>
<p>R.REQUEST_ID AS SESSION_REQUEST_ID,</p>
<p>R.STATUS,</p>
<p>S.HOST_NAME,</p>
<p>C.CLIENT_NET_ADDRESS,</p>
<p>CASE WHEN S.LOGIN_NAME = S.ORIGINAL_LOGIN_NAME THEN S.LOGIN_NAME ELSE S.LOGIN_NAME + &#8216; (&#8216; + S.ORIGINAL_LOGIN_NAME + &#8216;)&#8217; END AS LOGIN_NAME,</p>
<p>S.PROGRAM_NAME,</p>
<p>DB_NAME(R.DATABASE_ID) AS DATABASE_NAME,</p>
<p>R.COMMAND,</p>
<p>ST.TEXT AS QUERY_TEXT,</p>
<p>QP.QUERY_PLAN AS XML_QUERY_PLAN,</p>
<p>R.WAIT_TYPE AS CURRENT_WAIT_TYPE,</p>
<p>R.LAST_WAIT_TYPE,</p>
<p>R.BLOCKING_SESSION_ID,</p>
<p>R.ROW_COUNT,</p>
<p>R.GRANTED_QUERY_MEMORY,</p>
<p>R.OPEN_TRANSACTION_COUNT,</p>
<p>R.USER_ID,</p>
<p>R.PERCENT_COMPLETE,</p>
<p>CASE R.TRANSACTION_ISOLATION_LEVEL</p>
<p>WHEN 0 THEN &#8216;UNSPECIFIED&#8217;</p>
<p>WHEN 1 THEN &#8216;READUNCOMITTED&#8217;</p>
<p>WHEN 2 THEN &#8216;READCOMMITTED&#8217;</p>
<p>WHEN 3 THEN &#8216;REPEATABLE&#8217;</p>
<p>WHEN 4 THEN &#8216;SERIALIZABLE&#8217;</p>
<p>WHEN 5 THEN &#8216;SNAPSHOT&#8217;</p>
<p>ELSE CAST(R.TRANSACTION_ISOLATION_LEVEL AS VARCHAR(32))</p>
<p>END AS TRANSACTION_ISOLATION_LEVEL_NAME</p>
<p>FROM</p>
<p>SYS.DM_EXEC_REQUESTS R</p>
<p>LEFT OUTER JOIN SYS.DM_EXEC_SESSIONS S ON S.SESSION_ID = R.SESSION_ID</p>
<p>LEFT OUTER JOIN SYS.DM_EXEC_CONNECTIONS C ON C.CONNECTION_ID = R.CONNECTION_ID</p>
<p>CROSS APPLY SYS.DM_EXEC_SQL_TEXT(R.SQL_HANDLE) ST</p>
<p>CROSS APPLY SYS.DM_EXEC_QUERY_PLAN(R.PLAN_HANDLE) QP</p>
<p>WHERE</p>
<p>R.STATUS NOT IN (&#8216;BACKGROUND&#8217;,'SLEEPING&#8217;)</p>
<p><strong>Query 2 : </strong> How much task is completed in percentage? It’s my one of the favorite query while doing backup, restore check DB or index rebuild.</p>
<p>SELECT</p>
<p>A.SESSION_ID,</p>
<p>DB_NAME(A.DATABASE_ID) AS DATABASE_NAME,</p>
<p>A.START_TIME,A.COMMAND,</p>
<p>A.CPU_TIME,</p>
<p>A.PERCENT_COMPLETE,</p>
<p>A.ESTIMATED_COMPLETION_TIME,</p>
<p>B.TEXT</p>
<p>FROM SYS.DM_EXEC_REQUESTS A</p>
<p>CROSS APPLY</p>
<p>SYS.DM_EXEC_SQL_TEXT(A.SQL_HANDLE)AS B</p>
<p>WHERE SESSION_ID &gt; 50</p>
<p><strong>Remarks</strong></p>
<p>1. All Possible status of sessions :</p>
<p>· Background</p>
<p>· Running</p>
<p>· Runnable</p>
<p>· Sleeping</p>
<p>· Suspended</p>
<p>2. Percentage of work completed can be viewed for the following commands:</p>
<p>· ALTER INDEX REORGANIZE</p>
<p>· AUTO_SHRINK option with ALTER DATABASE</p>
<p>· BACKUP DATABASE</p>
<p>· DBCC CHECKDB</p>
<p>· DBCC CHECKFILEGROUP</p>
<p>· DBCC CHECKTABLE</p>
<p>· DBCC INDEXDEFRAG</p>
<p>· DBCC SHRINKDATABASE</p>
<p>· DBCC SHRINKFILE</p>
<p>· RECOVERY</p>
<p>· RESTORE DATABASE,</p>
<p>· ROLLBACK</p>
<p>· TDE ENCRYPTION</p>
<p>3. Exceptions for Blocking Session ID :</p>
<p>· -2 = The blocking resource is owned by an orphaned distributed transaction.</p>
<p>· -3 = The blocking resource is owned by a deferred recovery transaction.</p>
<p>· -4 = Session ID of the blocking latch owner could not be determined at this time because of internal latch state transitions</p>
<p>4. All possible Transaction isolation level of the session, on basis on integer values :</p>
<p>· 0 = Unspecified</p>
<p>· 1 = ReadUncomitted</p>
<p>· 2 = ReadCommitted</p>
<p>· 3 = Repeatable</p>
<p>· 4 = Serializable</p>
<p>· 5 = Snapshot</p>
<p>5. Permissions : User required <strong>VIEW SERVER STATE</strong> permission on the server to see all executing sessions on the instance of SQL Server, otherwise, the user will see only the current session.</p>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a><strong>)</strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/477/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/477/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=477&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/04/01/dmv-3-what-is-currently-going-on-sys-dm_exec_requests-2/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Cumulative Update &#8211; 10 for SQL Server 2008 Service Pack 3 Is Now Available !</title>
		<link>http://mssqlfun.com/2013/03/25/cumulative-update-10-for-sql-server-2008-service-pack-3-is-now-available/</link>
		<comments>http://mssqlfun.com/2013/03/25/cumulative-update-10-for-sql-server-2008-service-pack-3-is-now-available/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 13:27:28 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[KB]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL server 2008]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/03/25/cumulative-update-10-for-sql-server-2008-service-pack-3-is-now-available/</guid>
		<description><![CDATA[The 10th cumulative update release for SQL Server 2008 Service Pack 3 is now available. Cumulative Update 10 contains all the hotfixes released since the initial release of SQL Server 2008 SP3. Those who are facing severe issues with their environment, they can plan to test CU10 in test environment &#38; then move to Production &#8230; <a href="http://mssqlfun.com/2013/03/25/cumulative-update-10-for-sql-server-2008-service-pack-3-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=472&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a>The </a>10th cumulative update release for SQL Server 2008 Service Pack 3 is now available. Cumulative Update 10 contains all the hotfixes released since the initial release of SQL Server 2008 SP3.</p>
<p>Those who are facing severe issues with their environment, they can plan to test CU10 in test environment &amp; then move to Production after satisfactory results.</p>
<p>To other, I suggest to wait for SP4 final release to deploy on your production environment, to have consolidate build.</p>
<p><strong>KB Article For CU10 of SQL Server 2008 SP3</strong></p>
<p>· CU#10 KB Article: <a href="http://support.microsoft.com/kb/2814783">http://support.microsoft.com/kb/2814783</a></p>
<p><strong>Previous Cumulative Update KB Articles of SQL Server 2008 SP3:</strong></p>
<ul>
<li>CU#9 KB Article: <a href="http://support.microsoft.com/kb/2799883">http://support.microsoft.com/kb/2799883</a></li>
<li>CU#8 KB Article: <a href="http://support.microsoft.com/kb/2771833">http://support.microsoft.com/kb/2771833</a></li>
<li>CU#7 KB Article: <a href="http://support.microsoft.com/kb/2738350">http://support.microsoft.com/kb/2738350</a></li>
<li>CU#6 KB Article: <a href="http://support.microsoft.com/kb/2715953">http://support.microsoft.com/kb/2715953</a></li>
<li>CU#5 KB Article: <a href="http://support.microsoft.com/kb/2696626">http://support.microsoft.com/kb/2696626</a></li>
<li>CU#4 KB Article: <a href="http://support.microsoft.com/kb/2673383">http://support.microsoft.com/kb/2673383</a></li>
<li>CU#3 KB Article: <a href="http://support.microsoft.com/kb/2648098">http://support.microsoft.com/kb/2648098</a></li>
<li>CU#2 KB Article: <a href="http://support.microsoft.com/kb/2633143">http://support.microsoft.com/kb/2633143</a></li>
<li>CU#1 KB Article: <a href="http://support.microsoft.com/kb/2617146">http://support.microsoft.com/kb/2617146</a></li>
</ul>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a><strong>)</strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/472/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/472/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=472&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/03/25/cumulative-update-10-for-sql-server-2008-service-pack-3-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Cumulative Update &#8211; 3 for SQL Server 2012 Service Pack 1 Is Now Available !</title>
		<link>http://mssqlfun.com/2013/03/21/cumulative-update-3-for-sql-server-2012-service-pack-1-is-now-available/</link>
		<comments>http://mssqlfun.com/2013/03/21/cumulative-update-3-for-sql-server-2012-service-pack-1-is-now-available/#comments</comments>
		<pubDate>Thu, 21 Mar 2013 10:34:22 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[KB]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQL Server 2012]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/03/21/cumulative-update-3-for-sql-server-2012-service-pack-1-is-now-available/</guid>
		<description><![CDATA[The 3rdcumulative update release for SQL Server 2012 Service Pack 1 is now available. Cumulative Update 3 contains all the hotfixes released since the initial release of SQL Server 2012 SP1. Those who are facing severe issues with their environment, they can plan to test CU3 in test environment &#38; then move to Production after &#8230; <a href="http://mssqlfun.com/2013/03/21/cumulative-update-3-for-sql-server-2012-service-pack-1-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=469&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a>The </a>3rdcumulative update release for SQL Server 2012 Service Pack 1 is now available. Cumulative Update 3 contains all the hotfixes released since the initial release of SQL Server 2012 SP1.</p>
<p>Those who are facing severe issues with their environment, they can plan to test CU3 in test environment &amp; then move to Production after satisfactory results.</p>
<p>To other, I suggest to wait for SP2 final release to deploy on your production environment, to have consolidate build.</p>
<p><strong>KB Article For CU3 of SQL Server 2012 SP1</strong></p>
<p>· CU#3 KB Article: <a href="http://support.microsoft.com/kb/2812412">http://support.microsoft.com/kb/2812412</a></p>
<p><strong>Previous Cumulative Update KB Articles of SQL Server 2012 SP1</strong></p>
<ul>
<li>CU#1 KB Article: <a href="http://support.microsoft.com/kb/2765331">http://support.microsoft.com/kb/2765331</a></li>
<li>CU#2 KB Article: <a href="http://support.microsoft.com/kb/2790947">http://support.microsoft.com/kb/2790947</a></li>
</ul>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a><strong>)</strong></strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/469/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/469/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=469&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/03/21/cumulative-update-3-for-sql-server-2012-service-pack-1-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server 2000 Extended Support ending soon&#8230;&#8230;&#8230;21 days left</title>
		<link>http://mssqlfun.com/2013/03/19/sql-server-2000-extended-support-ending-soon-21-days-left/</link>
		<comments>http://mssqlfun.com/2013/03/19/sql-server-2000-extended-support-ending-soon-21-days-left/#comments</comments>
		<pubDate>Tue, 19 Mar 2013 02:40:35 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL Server 2000]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/03/19/sql-server-2000-extended-support-ending-soon-21-days-left/</guid>
		<description><![CDATA[· On April 9, 2013, Extended Support for SQL Server 2000 will come to an end, and SQL Server 2000 will no longer be supported. · What will change : · Self-Help Online Support will be available for a minimum of 12 months. Example: Microsoft online Knowledge Base articles, FAQs, troubleshooting tools, and other resources, &#8230; <a href="http://mssqlfun.com/2013/03/19/sql-server-2000-extended-support-ending-soon-21-days-left/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=467&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a>· On April 9, 2013, Extended Support for SQL Server 2000 will come to an end, and SQL Server 2000 will no longer be supported. </a></p>
<p>· <strong>What will change :</strong></p>
<p>· Self-Help Online Support will be available for a minimum of 12 months. Example: Microsoft online <a href="http://support.microsoft.com/search/?adv=1">Knowledge Base</a> articles, FAQs, troubleshooting tools, and other resources, that help customers resolve common issues.</p>
<p>· Updates to this software will stop and customers will no longer receive patches, including security updates.</p>
<p><strong>What Are available Options :</strong></p>
<p>· Upgrade to a supported version of SQL Server.</p>
<p>· Find out more about a Custom Support Agreement (CSA).</p>
<p>· Run SQL Server 2000 unsupported with access to Self-Help Online Support only (not recommended).</p>
<p>· Upgrade to SQL Server 2005 is not recommended as SQL Server 2005 is also transitioned from Mainstream Support to Extended Support.</p>
<p><strong>Refer Link : <a href="http://www.microsoft.com/en-us/sqlserver/support/support-updates.aspx"><b>http://www.microsoft.com/en-us/sqlserver/support/support-updates.aspx</b></a><b></b></strong></p>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p><strong>Reference : Rohit Garg (<a href="http://mssqlfun.com/" rel="nofollow">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/467/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/467/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=467&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/03/19/sql-server-2000-extended-support-ending-soon-21-days-left/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>DMV-2 : Explore the secrets of session&#8230;&#8230; sys.dm_exec_sessions</title>
		<link>http://mssqlfun.com/2013/03/11/dmv-2-explore-the-secrets-of-session-sys-dm_exec_sessions/</link>
		<comments>http://mssqlfun.com/2013/03/11/dmv-2-explore-the-secrets-of-session-sys-dm_exec_sessions/#comments</comments>
		<pubDate>Mon, 11 Mar 2013 05:11:17 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[DMV]]></category>
		<category><![CDATA[Dynamic Management View]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[SYS.DM_EXEC_SESSIONS]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/03/11/dmv-2-explore-the-secrets-of-session-sys-dm_exec_sessions/</guid>
		<description><![CDATA[sys.dm_exec_sessions DMV (Dynamic Management View), delineated by BOL as follows: http://msdn.microsoft.com/en-us/library/ms176013.aspx Returns one row per authenticated session on SQL Server. sys.dm_exec_sessions is a server-scope view that shows information about all active user connections and internal tasks. This information includes client version, client program name, client login time, login user, current session setting, and more. sys.dm_exec_sessions is extremely useful DMV when &#8230; <a href="http://mssqlfun.com/2013/03/11/dmv-2-explore-the-secrets-of-session-sys-dm_exec_sessions/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=451&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>sys.dm_exec_sessions DMV (Dynamic Management View), delineated by BOL as follows: <a title="http://msdn.microsoft.com/en-us/library/ms176013.aspx" href="http://msdn.microsoft.com/en-us/library/ms176013.aspx">http://msdn.microsoft.com/en-us/library/ms176013.aspx</a></p>
<div dir="ltr">
<p>Returns one row per authenticated session on SQL Server. sys.dm_exec_sessions is a server-scope view that shows information about all active user connections and internal tasks. This information includes client version, client program name, client login time, login user, current session setting, and more.</p>
<p>sys.dm_exec_sessions is extremely useful DMV when you need to fetch details like login name, transaction isolation level, status, used databases, language etc.</p>
<p><b>Query 1 : Complete details of every SQL Session</b></p>
<p>SELECT</p>
<p>S.SESSION_ID,</p>
<p>S.STATUS,</p>
<p>S.HOST_NAME,</p>
<p>DB_NAME(S.DATABASE_ID) DBNAME,</p>
<p>C.CLIENT_NET_ADDRESS,</p>
<p>CASE WHEN S.LOGIN_NAME = S.ORIGINAL_LOGIN_NAME THEN S.LOGIN_NAME ELSE S.LOGIN_NAME + &#8217; (&#8216; +S.ORIGINAL_LOGIN_NAME + &#8217;)' END AS LOGIN_NAME,</p>
<p>S.PROGRAM_NAME,</p>
<p>C.CONNECT_TIME, &#8211; DIFFRENT BETWEEN CONNECT &amp; LOGIN TIME IS TIME TAKEN BY PRELOGON ACTIVITIES</p>
<p>S.LOGIN_TIME,</p>
<p>CASE S.TRANSACTION_ISOLATION_LEVEL</p>
<p>WHEN 0 THEN &#8217;UNSPECIFIED&#8217;</p>
<p>WHEN 1 THEN &#8217;READUNCOMITTED&#8217;</p>
<p>WHEN 2 THEN &#8217;READCOMMITTED&#8217;</p>
<p>WHEN 3 THEN &#8217;REPEATABLE&#8217;</p>
<p>WHEN 4 THEN &#8217;SERIALIZABLE&#8217;</p>
<p>WHEN 5 THEN &#8217;SNAPSHOT&#8217;</p>
<p>ELSE CAST(S.TRANSACTION_ISOLATION_LEVEL AS VARCHAR(32))</p>
<p>END AS TRANSACTION_ISOLATION_LEVEL_NAME,</p>
<p>&#8211;S.LAST_SUCCESSFUL_LOGON, &#8212; REQUIRES &#8216;COMMON CRITERIA COMPLIANCE ENABLED&#8217; OPTION VIA SP_CONFIGURE.</p>
<p>&#8211;S.LAST_UNSUCCESSFUL_LOGON, &#8212; REQUIRES &#8216;COMMON CRITERIA COMPLIANCE ENABLED&#8217; OPTION VIA SP_CONFIGURE.</p>
<p>&#8211;S.UNSUCCESSFUL_LOGONS, &#8212; REQUIRES &#8216;COMMON CRITERIA COMPLIANCE ENABLED&#8217; OPTION VIA SP_CONFIGURE.</p>
<p>S.CPU_TIME AS CPU_TIME_MS,</p>
<p>S.MEMORY_USAGE AS MEMORY_USAGE_PAGES,</p>
<p>S.ROW_COUNT,</p>
<p>S.PREV_ERROR,</p>
<p>S.LAST_REQUEST_START_TIME,</p>
<p>S.LAST_REQUEST_END_TIME,</p>
<p>C.NET_TRANSPORT,</p>
<p>C.PROTOCOL_TYPE,</p>
<p>S.LANGUAGE,</p>
<p>S.DATE_FORMAT,</p>
<p>ST.TEXT AS QUERY_TEXT</p>
<p>FROM</p>
<p>SYS.DM_EXEC_SESSIONS S</p>
<p>FULL OUTER JOIN SYS.DM_EXEC_CONNECTIONS C ON C.SESSION_ID = S.SESSION_ID</p>
<p>CROSS APPLY SYS.DM_EXEC_SQL_TEXT(C.MOST_RECENT_SQL_HANDLE) ST</p>
<p>WHERE</p>
<p>S.SESSION_ID IS NULL</p>
<p>OR S.SESSION_ID &gt; 50</p>
<p>ORDER BY</p>
<p>S.SESSION_ID</p>
<p><b>Query 2 :  What number session every login have?</b></p>
<p>SELECT LOGIN_NAME , COUNT(SESSION_ID) AS [SESSION_COUNT]</p>
<p>FROM SYS.DM_EXEC_SESSIONS</p>
<p>GROUP BY LOGIN_NAME ORDER BY COUNT(SESSION_ID) DESC ;</p>
<p><b><span style="text-decoration:underline;">Remarks</span></b></p>
<p>1.       All Possible status of sessions :</p>
<p>·         <b>Running</b> - Currently running one or more requests</p>
<p>·         <b>Sleeping</b> - Currently running no requests</p>
<p>·         <b>Dormant</b> – Session has been reset because of connection pooling and is now in prelogin state.</p>
<p>·         <b>Preconnect</b> - Session is in the Resource Governor classifier.</p>
<p>2.       All possible Transaction isolation level of the session, on basis on integer values :</p>
<p>·         0 = Unspecified</p>
<p>·         1 = ReadUncomitted</p>
<p>·         2 = ReadCommitted</p>
<p>·         3 = Repeatable</p>
<p>·         4 = Serializable</p>
<p>·         5 = Snapshot</p>
<p>3.       <b>Common Criteria Compliance Enabled</b> : If this option in server configuration is enabled, logon statistics are displayed in the following columns. If this option is not enabled, these columns will return null values.</p>
<p>·         last_successful_logon</p>
<p>·         last_unsuccessful_logon</p>
<p>·         unsuccessful_logons</p>
<p>4.       Permissions : User required <b>VIEW SERVER STATE</b> permission on the server to see all executing sessions on the instance of SQL Server, otherwise, the user will see only the current session.</p>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p><strong>Reference : Rohit Garg (<a href="http://mssqlfun.com/" rel="nofollow">http://mssqlfun.com/</a>)</strong></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/451/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/451/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=451&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/03/11/dmv-2-explore-the-secrets-of-session-sys-dm_exec_sessions/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>DMV-1 : Who All Are connected ? &#8230;. sys.dm_exec_connections</title>
		<link>http://mssqlfun.com/2013/03/05/dmv-1-who-all-are-connected-sys-dm_exec_connections/</link>
		<comments>http://mssqlfun.com/2013/03/05/dmv-1-who-all-are-connected-sys-dm_exec_connections/#comments</comments>
		<pubDate>Tue, 05 Mar 2013 10:30:41 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[DMV]]></category>
		<category><![CDATA[Dynamic Management View]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[sys.dm_exec_connections]]></category>
		<category><![CDATA[SYS.DM_EXEC_SESSIONS]]></category>
		<category><![CDATA[SYS.DM_EXEC_SQL_TEXT]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/03/05/dmv-1-who-all-are-connected-sys-dm_exec_connections/</guid>
		<description><![CDATA[The sys.dm_exec_connections DMV (Dynamic Management View) is represented by Books Online (BOL) as follows : http://msdn.microsoft.com/en-us/library/ms181509.aspx Returns information about the connections established to this instance of SQL Server and the details of each connection. sys.dm_exec_connections is the most common DMV used to get connection details. We will get details info regarding every connection like protocol &#8230; <a href="http://mssqlfun.com/2013/03/05/dmv-1-who-all-are-connected-sys-dm_exec_connections/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=445&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The sys.dm_exec_connections DMV (Dynamic Management View) is represented by Books Online (BOL) as follows : <a href="http://msdn.microsoft.com/en-us/library/ms181509.aspx">http://msdn.microsoft.com/en-us/library/ms181509.aspx</a></p>
<p><strong>Returns information about the connections established to this instance of SQL Server and the details of each connection.</strong></p>
<p>sys.dm_exec_connections is the most common DMV used to get connection details. We will get details info regarding every connection like protocol user, last read time, last write time, last executed SQL query, connection time etc.</p>
<p><strong>Query 1 : Complete details of every SQL Connection</strong></p>
<p>SELECT</p>
<p>C.SESSION_ID,</p>
<p>C.MOST_RECENT_SESSION_ID,</p>
<p>C.CONNECT_TIME,</p>
<p>C.LAST_READ,</p>
<p>C.LAST_WRITE,</p>
<p>C.NUM_READS,</p>
<p>C.NUM_WRITES,</p>
<p>C.NET_TRANSPORT,</p>
<p>C.ENCRYPT_OPTION,</p>
<p>C.AUTH_SCHEME,</p>
<p>C.PROTOCOL_TYPE,</p>
<p>C.PROTOCOL_VERSION,</p>
<p>C.NET_PACKET_SIZE,</p>
<p>C.ENDPOINT_ID,</p>
<p>C.CLIENT_NET_ADDRESS,</p>
<p>C.CLIENT_TCP_PORT,</p>
<p>C.LOCAL_NET_ADDRESS,</p>
<p>C.LOCAL_TCP_PORT,</p>
<p>C.NODE_AFFINITY,</p>
<p>C.CONNECTION_ID,</p>
<p>C.PARENT_CONNECTION_ID,</p>
<p>C.MOST_RECENT_SQL_HANDLE,</p>
<p>CASE WHEN ST.DBID = 32767 THEN &#8216;RESOURCEDB&#8217; ELSE DB_NAME(ST.DBID) END AS DATABASE_NAME,</p>
<p>CASE WHEN ST.DBID IS NULL THEN NULL ELSE OBJECT_SCHEMA_NAME(ST.OBJECTID, ST.DBID) END AS OBJECT_SCHEMA_NAME,</p>
<p>CASE WHEN ST.DBID IS NULL THEN NULL ELSE OBJECT_NAME(ST.OBJECTID, ST.DBID) END AS OBJECT_NAME,</p>
<p>ST.TEXT AS QUERY_TEXT</p>
<p>FROM</p>
<p>SYS.DM_EXEC_CONNECTIONS C</p>
<p>CROSS APPLY SYS.DM_EXEC_SQL_TEXT(C.MOST_RECENT_SQL_HANDLE) ST</p>
<p><strong>Query 2 : Sample Query Get a count of SQL connections by IP address</strong></p>
<p>SELECT EC.CLIENT_NET_ADDRESS ,</p>
<p>ES.[PROGRAM_NAME] ,</p>
<p>ES.[HOST_NAME] ,</p>
<p>ES.LOGIN_NAME ,</p>
<p>COUNT(EC.SESSION_ID) AS [CONNECTION COUNT]</p>
<p>FROM SYS.DM_EXEC_SESSIONS AS ES</p>
<p>INNER JOIN SYS.DM_EXEC_CONNECTIONS AS EC</p>
<p>ON ES.SESSION_ID = EC.SESSION_ID</p>
<p>GROUP BY EC.CLIENT_NET_ADDRESS ,</p>
<p>ES.[PROGRAM_NAME] ,</p>
<p>ES.[HOST_NAME] ,</p>
<p>ES.LOGIN_NAME</p>
<p>ORDER BY EC.CLIENT_NET_ADDRESS ,</p>
<p>ES.[PROGRAM_NAME] ;</p>
<p>Permissions : User required <strong>VIEW SERVER STATE</strong> permission on the server, to use this DMV.</p>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p><strong>Reference : Rohit Garg (<a href="http://mssqlfun.com/" rel="nofollow">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/445/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/445/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=445&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/03/05/dmv-1-who-all-are-connected-sys-dm_exec_connections/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server Discovery Report</title>
		<link>http://mssqlfun.com/2013/02/26/sql-server-discovery-report/</link>
		<comments>http://mssqlfun.com/2013/02/26/sql-server-discovery-report/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 18:34:37 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[MSSQLFUN]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[SQL Server discovery Tools]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=437</guid>
		<description><![CDATA[How can I check what all SQL server features and version are installed on my Machine ? It’s a frequently asked question. You need to study your environment, need to login each instance to check version &#38; other details, to answer this question. Till SQL Server 2005, you have no direct solution. But Starting from &#8230; <a href="http://mssqlfun.com/2013/02/26/sql-server-discovery-report/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=437&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>How can I check what all SQL server features and version are installed on my Machine ?</strong></p>
<p>It’s a frequently asked question. You need to study your environment, need to login each instance to check version &amp; other details, to answer this question.</p>
<p>Till SQL Server 2005, you have no direct solution.</p>
<p>But Starting from SQL Server 2008, Microsoft added a SQL Server discovery report as an useful tool under Tools page of Installation Center.</p>
<p><strong>SQL Server Discovery tool</strong></p>
<p>Lunch SQL Server Installation Center under Configuration Tools ( Click on the <strong>Start</strong> menu, go to <strong>All Programs</strong>, click to <strong>Microsoft SQL Server &lt;Version Name&gt;</strong>, under <strong>Configuration Tools </strong>click on <strong>SQL Server Installation Center</strong>) OR Directly Run Setup.exe &amp; browse to Tools Page</p>
<p><strong>Step 1</strong></p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/02/image0012.png"><img class="alignnone size-full wp-image-438" alt="" src="http://mssqlfun.files.wordpress.com/2013/02/image0012.png?w=960"   /></a></p>
<p><strong>Step 2</strong></p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/02/image0022.png"><img class="alignnone size-full wp-image-439" alt="" src="http://mssqlfun.files.wordpress.com/2013/02/image0022.png?w=960"   /></a></p>
<p><strong>Step 3</strong></p>
<p>Report will be generate &amp; open in default browser automatically</p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/02/image0031.png"><img class="alignnone size-full wp-image-440" alt="" src="http://mssqlfun.files.wordpress.com/2013/02/image0031.png?w=960"   /></a></p>
<p><strong>Report Location</strong></p>
<p>The SQL Server Discovery Report will be saved automatically in %ProgramFiles%Microsoft SQL Server100Setup BootstrapLog&lt;last Setup Session&gt;</p>
<p><strong>Other Useful Options</strong></p>
<p>· You can also generate the Discovery report through the command line. Run “Setup.exe /Action=RunDiscovery” from a command prompt</p>
<p>· If you add “/q” to the command line above no UI will be shown, but the report will saved in %ProgramFiles%Microsoft SQL Server100Setup BootstrapLog&lt;last Setup Session&gt;</p>
<p><strong>Limitation</strong></p>
<p>· SQL Server discovery tool cannot be used to discover Remote SQL server installation</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms190768(v=sql.90).aspx"> </a></p>
<p>If you liked this post, do like on Facebook at <a href="http://www.facebook.com/mssqlfun" rel="nofollow">http://www.facebook.com/mssqlfun</a><br />
Reference : Rohit Garg (<a href="http://mssqlfun.com/" rel="nofollow">http://mssqlfun.com/</a>)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/437/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/437/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=437&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/02/26/sql-server-discovery-report/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/02/image0012.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/02/image0022.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/02/image0031.png" medium="image" />
	</item>
		<item>
		<title>Cumulative Update &#8211; 5 for SQL Server 2008 R2 Service Pack 2 Is Now Available !</title>
		<link>http://mssqlfun.com/2013/02/19/cumulative-update-5-for-sql-server-2008-r2-service-pack-2-is-now-available/</link>
		<comments>http://mssqlfun.com/2013/02/19/cumulative-update-5-for-sql-server-2008-r2-service-pack-2-is-now-available/#comments</comments>
		<pubDate>Tue, 19 Feb 2013 17:45:08 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[CU]]></category>
		<category><![CDATA[KB]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/02/19/cumulative-update-5-for-sql-server-2008-r2-service-pack-2-is-now-available/</guid>
		<description><![CDATA[The 5th cumulative update release for SQL Server 2008 R2 Service Pack 2 is now available for download at the Microsoft Support site. Cumulative Update 5 contains all the hotfixes released since the initial release of SQL Server 2008 R2 SP2. Those who are facing severe issues with their environment, they can plan to test &#8230; <a href="http://mssqlfun.com/2013/02/19/cumulative-update-5-for-sql-server-2008-r2-service-pack-2-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=412&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The 5th cumulative update release for SQL Server 2008 R2 Service Pack 2 is now available for download at the Microsoft Support site. Cumulative Update 5 contains all the hotfixes released since the initial release of SQL Server 2008 R2 SP2.</p>
<p>Those who are facing severe issues with their environment, they can plan to test CU5 in test environment &amp; then move to Production after satisfactory results.</p>
<p>To other, I suggest to wait for SP3 final release to deploy on your production environment, to have consolidate build.</p>
<p><strong>KB Article For CU5 of SQL Server 2008 R2 SP2</strong></p>
<ul>
<li>CU#5 KB Article: <a href="http://support.microsoft.com/kb/2797460">http://support.microsoft.com/kb/2797460</a></li>
</ul>
<p><strong>Previous Cumulative Update KB Articles:</strong></p>
<ul>
<li>CU#4 KB Article: <a href="http://blogs.msdn.com/controlpanel/blogs/posteditor.aspx/%20http:/support.microsoft.com/kb/2777358"> http://support.microsoft.com/kb/2777358</a></li>
<li>CU#3 KB Article: <a href="http://support.microsoft.com/kb/2754552">http://support.microsoft.com/kb/2754552</a></li>
<li>CU#2 KB Article: <a href="http://support.microsoft.com/kb/2740411">http://support.microsoft.com/kb/2740411</a></li>
<li>CU#1 KB Article: <a href="http://support.microsoft.com/kb/2720425">http://support.microsoft.com/kb/2720425</a></li>
</ul>
<p>If you liked this post, do like on Facebook at <a href="http://www.facebook.com/mssqlfun" rel="nofollow">http://www.facebook.com/mssqlfun</a></p>
<p>Reference : Rohit Garg (<a href="http://mssqlfun.com/" rel="nofollow">http://mssqlfun.com/</a>)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/412/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/412/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=412&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/02/19/cumulative-update-5-for-sql-server-2008-r2-service-pack-2-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Cumulative Update &#8211; 6 for SQL Server 2012 Is Now Available !</title>
		<link>http://mssqlfun.com/2013/02/19/cumulative-update-6-for-sql-server-2012-is-now-available/</link>
		<comments>http://mssqlfun.com/2013/02/19/cumulative-update-6-for-sql-server-2012-is-now-available/#comments</comments>
		<pubDate>Tue, 19 Feb 2013 17:44:53 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[CU]]></category>
		<category><![CDATA[KB]]></category>
		<category><![CDATA[SQL Server 2012]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/02/19/cumulative-update-6-for-sql-server-2012-is-now-available/</guid>
		<description><![CDATA[The 6thcumulative update release for SQL Server 2012 is now available. Cumulative Update 6 contains all the hotfixes released since the initial release of SQL Server 2012. Those who are facing severe issues with their environment, they can plan to test CU6 in test environment &#38; then move to Production after satisfactory results. KB Article &#8230; <a href="http://mssqlfun.com/2013/02/19/cumulative-update-6-for-sql-server-2012-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=411&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The 6thcumulative update release for SQL Server 2012 is now available. Cumulative Update 6 contains all the hotfixes released since the initial release of SQL Server 2012.</p>
<p>Those who are facing severe issues with their environment, they can plan to test CU6 in test environment &amp; then move to Production after satisfactory results.</p>
<p><strong>KB Article For CU6 of SQL Server 2012</strong></p>
<p>· CU#6 KB Article: <a href="http://support.microsoft.com/kb/2728897">http://support.microsoft.com/kb/2728897</a></p>
<p><strong>Previous Cumulative Update KB Articles of SQL Server 2012</strong></p>
<p><strong>· </strong>CU#5 KB Article: <a href="http://support.microsoft.com/kb/2777772">http://support.microsoft.com/kb/2777772</a></p>
<p>· CU#4 KB Article: <a href="http://support.microsoft.com/kb/2758687">http://support.microsoft.com/kb/2758687</a></p>
<p>· CU#3 KB Article: <a href="http://support.microsoft.com/kb/2723749">http://support.microsoft.com/kb/2723749</a></p>
<p>· CU#2 KB Article: <a href="http://support.microsoft.com/kb/2703275">http://support.microsoft.com/kb/2703275</a></p>
<p>· CU#1 KB Article: <a href="http://support.microsoft.com/kb/2679368">http://support.microsoft.com/kb/2679368</a></p>
<p>If you liked this post, do like on Facebook at <a href="http://www.facebook.com/mssqlfun" rel="nofollow">http://www.facebook.com/mssqlfun</a></p>
<p>Reference : Rohit Garg (<a href="http://mssqlfun.com/" rel="nofollow">http://mssqlfun.com/</a>)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/411/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/411/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=411&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/02/19/cumulative-update-6-for-sql-server-2012-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Cumulative Update &#8211; 11 for SQL Server 2008 R2 Service Pack 1 Is Now Available !</title>
		<link>http://mssqlfun.com/2013/02/19/cumulative-update-11-for-sql-server-2008-r2-service-pack-1-is-now-available/</link>
		<comments>http://mssqlfun.com/2013/02/19/cumulative-update-11-for-sql-server-2008-r2-service-pack-1-is-now-available/#comments</comments>
		<pubDate>Tue, 19 Feb 2013 17:44:19 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[CU]]></category>
		<category><![CDATA[KB]]></category>
		<category><![CDATA[Sql Server 2008 R2]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/02/19/cumulative-update-11-for-sql-server-2008-r2-service-pack-1-is-now-available/</guid>
		<description><![CDATA[The 11thcumulative update release for SQL Server 2008 R2 Service Pack 1 is now available for download at the Microsoft Support site. Cumulative Update 11 contains all the hotfixes released since the initial release of SQL Server 2008 R2 SP1. Those who are facing severe issues with their environment, they can plan to test CU11 &#8230; <a href="http://mssqlfun.com/2013/02/19/cumulative-update-11-for-sql-server-2008-r2-service-pack-1-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=410&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The 11thcumulative update release for SQL Server 2008 R2 Service Pack 1 is now available for download at the Microsoft Support site. Cumulative Update 11 contains all the hotfixes released since the initial release of SQL Server 2008 R2 SP1.</p>
<p>Those who are facing severe issues with their environment, they can plan to test CU11 in test environment &amp; then move to Production after satisfactory results.</p>
<p><strong>For CU11 of SQL Server 2008 R2 SP1</strong></p>
<ul>
<li>CU#11 KB Article: <a href="http://support.microsoft.com/kb/2812683">http://support.microsoft.com/kb/2812683</a></li>
</ul>
<p><strong>Previous Cumulative Update KB Articles:</strong></p>
<ul>
<li>CU#10 KB Article: <a title="http://support.microsoft.com/kb/2783135" href="http://support.microsoft.com/kb/2783135"> http://support.microsoft.com/kb/2783135</a></li>
<li>CU#9 KB Article: <a href="http://support.microsoft.com/kb/2756574">http://support.microsoft.com/kb/2756574</a></li>
<li>CU#8 KB Article: <a href="http://support.microsoft.com/kb/2723743">http://support.microsoft.com/kb/2723743</a></li>
<li>CU#7 KB Article: <a href="http://support.microsoft.com/kb/2703282">http://support.microsoft.com/kb/2703282</a></li>
<li>CU#6 KB Article: <a href="http://support.microsoft.com/kb/2679367">http://support.microsoft.com/kb/2679367</a></li>
<li>CU#5 KB Article: <a href="http://support.microsoft.com/kb/2659694">http://support.microsoft.com/kb/2659694</a></li>
<li>CU#4 KB Article: <a href="http://support.microsoft.com/kb/2633146">http://support.microsoft.com/kb/2633146</a></li>
<li>CU#3 KB Article: <a href="http://support.microsoft.com/kb/2591748">http://support.microsoft.com/kb/2591748</a></li>
<li>CU#2 KB Article: <a href="http://support.microsoft.com/kb/2567714">http://support.microsoft.com/kb/2567714</a></li>
<li>CU#1 KB Article: <a href="http://support.microsoft.com/kb/2544793">http://support.microsoft.com/kb/2544793</a></li>
</ul>
<p>If you liked this post, do like on Facebook at <strong><a href="https://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/410/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/410/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=410&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/02/19/cumulative-update-11-for-sql-server-2008-r2-service-pack-1-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Backup not starting for Database with Full Text Catalog&#8230;&#8230;&#8230;&#8230;..Failed to change the status to RESUME for full-text catalog in database. Error: 0&#215;80043607</title>
		<link>http://mssqlfun.com/2013/02/15/backup-not-starting-for-database-with-full-text-catalog-failed-to-change-the-status-to-resume-for-full-text-catalog-in-database-error-0x80043607/</link>
		<comments>http://mssqlfun.com/2013/02/15/backup-not-starting-for-database-with-full-text-catalog-failed-to-change-the-status-to-resume-for-full-text-catalog-in-database-error-0x80043607/#comments</comments>
		<pubDate>Thu, 14 Feb 2013 21:43:18 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Errors]]></category>
		<category><![CDATA[MSSQLFUN]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Full Text Search]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[FTS]]></category>

		<guid isPermaLink="false">http://mssqlfun.wordpress.com/?p=190</guid>
		<description><![CDATA[Issue :- One of our Database with Full Text Catalog is not getting backed up. When I checked, backup keeps pending on 0% without any progress. In SQL server error log, I also found error related to Full text catalog that SQL server is facing issue in setting Full test catalog status. These is some &#8230; <a href="http://mssqlfun.com/2013/02/15/backup-not-starting-for-database-with-full-text-catalog-failed-to-change-the-status-to-resume-for-full-text-catalog-in-database-error-0x80043607/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=190&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>Issue :- </strong></p>
<p>One of our Database with Full Text Catalog is not getting backed up. When I checked, backup keeps pending on 0% without any progress. In SQL server error log, I also found error related to Full text catalog that SQL server is facing issue in setting Full test catalog status.</p>
<p>These is some issue with FTS service due to which when backup ask FTS service to change Full text catalog status, it failed.</p>
<p>SQL server backup change status between PAUSE &amp; RESUME before &amp; after backup.</p>
<p><em>Failed to change the status to RESUME for full-text catalog &#8220;Test_FullTextCatalog&#8221; in database &#8220;Test&#8221;. Error: 0&#215;80043607(An internal interface is being used after the corresponding catalog has been shutdown. The operation will be aborted.).</em></p>
<p><strong>Solution :-</strong></p>
<p>You need to restart the Full Text service to resolve the issue.</p>
<p>I have restarted the FTS &amp; try backup again and it worked successful.</p>
<p>Please share if you face any more issue in this regard or any other possible solution.</p>
<p>If you liked this post, do like on Facebook at <a href="https://www.facebook.com/mssqlfun"><b>http://www.facebook.com/mssqlfun</b></a></p>
<p>Reference : <strong>Rohit Garg (</strong><a href="http://mssqlfun.com/"><b>http://mssqlfun.com/</b></a><strong>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/190/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/190/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=190&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/02/15/backup-not-starting-for-database-with-full-text-catalog-failed-to-change-the-status-to-resume-for-full-text-catalog-in-database-error-0x80043607/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Connect PerfMon to a Remote Server</title>
		<link>http://mssqlfun.com/2013/02/15/connect-perfmon-to-a-remote-server/</link>
		<comments>http://mssqlfun.com/2013/02/15/connect-perfmon-to-a-remote-server/#comments</comments>
		<pubDate>Thu, 14 Feb 2013 21:43:05 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Perfmon]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[perfmon]]></category>
		<category><![CDATA[port 445]]></category>
		<category><![CDATA[remote system]]></category>
		<category><![CDATA[Server Access denied]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=203</guid>
		<description><![CDATA[It seems to be a simple &#38; easy thing to connect Perfmon to a remote server. GO TO RUN &#62; Perfmon &#62; Right Click “Connect to Another Computer” &#62; Enter server name &#38; you are done But I face several connectivity issue during connecting Perfmon from remote server. ISSUE 1: DNS not able to resolve &#8230; <a href="http://mssqlfun.com/2013/02/15/connect-perfmon-to-a-remote-server/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=203&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>It seems to be a simple &amp; easy thing to connect Perfmon to a remote server.</p>
<p>GO TO RUN &gt; Perfmon &gt; Right Click “Connect to Another Computer” &gt; Enter server name &amp; you are done</p>
<p>But I face several connectivity issue during connecting Perfmon from remote server.</p>
<p><strong>ISSUE 1: </strong>DNS not able to resolve the server name</p>
<p><strong>RESOLUTION :</strong> I have fixed the issue by adding an entry in the hosts file (C:\Windows\System32\drivers\etc).</p>
<p><strong>ISSUE 2 :</strong> Unable to connect the server</p>
<p><strong>RESOLUTION:</strong> I have checked &amp; found that Perfmon is trying to use Port 445 for connectivity. Telnet showed that port number 445 is blocked. I have asked added port into firewall exception &amp; it works.</p>
<p><strong>ISSUE 3 :</strong> Server Access denied</p>
<p><strong>RESOLUTION:</strong> PerfMon is trying to the connect the remote server using the logged in user account which will not work by default as my user is not having access on remote server. Now, I need to run perfmon using a different user account which has access to the remote server.</p>
<p>runas /netonly /user:TestDomain\UserName &#8220;perfmon&#8221;<br />
On running this command, it will ask for the password. It will open the PerfMon and you are ready to go.</p>
<p>&nbsp;</p>
<p>If you liked this post, do like on Facebook at <a href="http://www.facebook.com/mssqlfun" rel="nofollow">http://www.facebook.com/mssqlfun</a></p>
<p>Reference : Rohit Garg (<a href="http://mssqlfun.com/" rel="nofollow">http://mssqlfun.com/</a>)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/203/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/203/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=203&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/02/15/connect-perfmon-to-a-remote-server/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get list of all available parameter of .EXE file ?</title>
		<link>http://mssqlfun.com/2013/02/13/how-to-get-list-of-all-available-parameter-of-exe-file/</link>
		<comments>http://mssqlfun.com/2013/02/13/how-to-get-list-of-all-available-parameter-of-exe-file/#comments</comments>
		<pubDate>Wed, 13 Feb 2013 17:54:46 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[MSSQLFUN]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQLCMD]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[parameter]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=359</guid>
		<description><![CDATA[Today, We discuss How to get list of all available parameter of .EXE file OR How to find list of SQL Server setup parameters ? Major problem is of all available parameter details. Sometime, We need to pass parameter to .EXE file to get some different &#38; superior functionality. We can get details of available &#8230; <a href="http://mssqlfun.com/2013/02/13/how-to-get-list-of-all-available-parameter-of-exe-file/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=359&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Today, We discuss How to get list of all available parameter of .EXE file OR How to find list of SQL Server setup parameters ?</p>
<p>Major problem is of all available parameter details. Sometime, We need to pass parameter to .EXE file to get some different &amp; superior functionality.</p>
<p>We can get details of available parameters by passing “/?” to any .EXE file in windows cmd.</p>
<p><strong>Example 1 : Check parameter of SQL Server Setup</strong></p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/02/image0011.png"><img class="alignnone size-full wp-image-360" alt="" src="http://mssqlfun.files.wordpress.com/2013/02/image0011.png?w=960"   /></a></p>
<p><strong>List of parameters</strong></p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/02/image0021.png"><img class="alignnone size-full wp-image-361" alt="" src="http://mssqlfun.files.wordpress.com/2013/02/image0021.png?w=960"   /></a></p>
<p><strong>Example 2 : Check parameter of Procmon.exe (other than SQL Server)</strong></p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/02/image003.png"><img class="alignnone size-full wp-image-362" alt="" src="http://mssqlfun.files.wordpress.com/2013/02/image003.png?w=960"   /></a></p>
<p><strong>List of parameters</strong></p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/02/image004.png"><img class="alignnone size-full wp-image-363" alt="" src="http://mssqlfun.files.wordpress.com/2013/02/image004.png?w=960"   /></a></p>
<p>If you liked this post, do like on Facebook at <b><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></b></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/359/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/359/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=359&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/02/13/how-to-get-list-of-all-available-parameter-of-exe-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/02/image0011.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/02/image0021.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/02/image003.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/02/image004.png" medium="image" />
	</item>
		<item>
		<title>Refresh Intellisense in SSMS(SQL Server Management Studio) 2008 &amp; above</title>
		<link>http://mssqlfun.com/2013/02/11/refresh-intellisense-in-ssmssql-server-management-studio-2008-above/</link>
		<comments>http://mssqlfun.com/2013/02/11/refresh-intellisense-in-ssmssql-server-management-studio-2008-above/#comments</comments>
		<pubDate>Mon, 11 Feb 2013 17:59:22 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Errors]]></category>
		<category><![CDATA[MSSQLFUN]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Server Management Studio]]></category>
		<category><![CDATA[SSMS]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[Intellisense]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=352</guid>
		<description><![CDATA[Intellisense is a new feature that comes with SSMS(SQL Server Management Studio) 2008 onwards. Intellisense makes coding quite easy. But Sometimes I find that intellisense becomes stale and you start getting the wavy red lines when writing code. Even though object exists in database but Intellisense is not able to recognize it. Refreshing the cache &#8230; <a href="http://mssqlfun.com/2013/02/11/refresh-intellisense-in-ssmssql-server-management-studio-2008-above/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=352&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Intellisense is a new feature that comes with SSMS(SQL Server Management Studio) 2008 onwards. Intellisense makes coding quite easy.</p>
<p>But Sometimes I find that intellisense becomes stale and you start getting the wavy red lines when writing code. Even though object exists in database but Intellisense is not able to recognize it.</p>
<p>Refreshing the cache is quite easy but not necessarily strictly required.</p>
<p>Go to Edit -&gt; IntelliSense -&gt; Refresh Local Cache OR you can use shortcut Ctrl + Shift + R</p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/02/image002.png"><img class="alignnone size-full wp-image-353" alt="" src="http://mssqlfun.files.wordpress.com/2013/02/image002.png?w=960"   /></a></p>
<p>You can check in below image that database has 5 table but intellisense showing only 4 tables. Table “JKL” is missing from intellisense list. You can refresh the Intellisense to get all tables.</p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/02/image001.png"><img class="alignnone size-full wp-image-354" alt="" src="http://mssqlfun.files.wordpress.com/2013/02/image001.png?w=960"   /></a></p>
<p>More details on Intellisense can be found over MSDN : <a title="http://msdn.microsoft.com/en-us/library/hh245114.aspx" href="http://msdn.microsoft.com/en-us/library/hh245114.aspx">http://msdn.microsoft.com/en-us/library/hh245114.aspx</a></p>
<p>If you liked this post, do like on Facebook at <a href="https://www.facebook.com/mssqlfun"><b>http://www.facebook.com/mssqlfun</b></a></p>
<p>Reference : <strong>Rohit Garg (</strong><a href="http://mssqlfun.com/"><b>http://mssqlfun.com/</b></a><strong>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/352/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/352/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=352&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/02/11/refresh-intellisense-in-ssmssql-server-management-studio-2008-above/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/02/image002.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/02/image001.png" medium="image" />
	</item>
		<item>
		<title>Move or Relocate the files of Resoruce Database in SQL Server 2005</title>
		<link>http://mssqlfun.com/2013/02/07/move-or-relocate-the-files-of-resoruce-database-in-sql-server-2005/</link>
		<comments>http://mssqlfun.com/2013/02/07/move-or-relocate-the-files-of-resoruce-database-in-sql-server-2005/#comments</comments>
		<pubDate>Thu, 07 Feb 2013 09:10:28 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[MSSQLFUN]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[MSSQLSYSTEMRESOURCE]]></category>
		<category><![CDATA[Resource Database]]></category>
		<category><![CDATA[Trace Flag]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/02/07/move-or-relocate-the-files-of-resoruce-database-in-sql-server-2005/</guid>
		<description><![CDATA[The Resource database is a read-only database that contains all the system objects that are included with SQL Server. SQL Server system objects, such as sys.objects, are physically persisted in the Resource database, but they logically appear in the sys schema of every database. The Resource database does not contain user data or user metadata. &#8230; <a href="http://mssqlfun.com/2013/02/07/move-or-relocate-the-files-of-resoruce-database-in-sql-server-2005/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=349&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The Resource database is a read-only database that contains all the system objects that are included with SQL Server. SQL Server system objects, such as sys.objects, are physically persisted in the Resource database, but they logically appear in the sys schema of every database. The Resource database does not contain user data or user metadata. It comes into picture from SQL Server 2005 onwards.</p>
<p>In SQL Server 2005, in order to move or relocate the files of the Resource Database :-</p>
<p>1) Stop the SQL Server service</p>
<p>2) Start it using either -m (single user mode) or -f (minimal configuration) startup option which will start it in the maintenance mode. In addition, use the -T3608 trace flag which will skip the recovery of all the databases other than the master database. By doing this, we are ensuring that there is no process using the Resource database.</p>
<p>3) After this, the move is the same as others by using the ALTER DATABASE command: Change the file location by below command.</p>
<p>ALTER DATABASE MSSQLSYSTEMRESOURCE MODIFY FILE (NAME=DATA, FILENAME= ‘&lt;THE NEW PATH FOR THE DATA FILE&gt;\MSSQLSYSTEMRESOURCE.MDF’)</p>
<p>ALTER DATABASE MSSQLSYSTEMRESOURCE MODIFY FILE (NAME=LOG, FILENAME= ‘&lt;THE NEW PATH FOR THE LOG FILE&gt;\MSSQLSYSTEMRESOURCE.LDF’)</p>
<p>4) Once above command completed, then stop the SQL Server service</p>
<p>5) Move the file or files to the new location.</p>
<p>6) Restart the instance of SQL Server, this time without those startup option flags and without the trace flag</p>
<p><strong>Please do note that this behavior has changed from SQL Server 2008 onwards. </strong>Now, Resource database cannot be moved.</p>
<p>If you liked this post, do like on Facebook at <strong><a href="https://www.facebook.com/mssqlfun">https://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/349/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/349/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=349&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/02/07/move-or-relocate-the-files-of-resoruce-database-in-sql-server-2005/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Microsoft SQL Server License Helpline</title>
		<link>http://mssqlfun.com/2013/02/05/microsoft-sql-server-license-helpline/</link>
		<comments>http://mssqlfun.com/2013/02/05/microsoft-sql-server-license-helpline/#comments</comments>
		<pubDate>Tue, 05 Feb 2013 10:45:45 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SQL Errors]]></category>
		<category><![CDATA[DAC]]></category>
		<category><![CDATA[MSSQLFUN]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[SQL Server Agent]]></category>
		<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQLCMD]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[License]]></category>
		<category><![CDATA[Microsoft License Helpline]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/02/05/microsoft-sql-server-license-helpline/</guid>
		<description><![CDATA[Microsoft SQL Server license has lots of flavors in terms of user based \ CAL or processor based license, license based on versions or license based on environment (physical or virtual). Although, Microsoft release license guidelines for each &#38; every SQL server version. But there are more complex scenarios for licensing then we think. Best &#8230; <a href="http://mssqlfun.com/2013/02/05/microsoft-sql-server-license-helpline/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=344&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Microsoft SQL Server license has lots of flavors in terms of user based \ CAL or processor based license, license based on versions or license based on environment (physical or virtual).</p>
<p>Although, Microsoft release license guidelines for each &amp; every SQL server version. But there are more complex scenarios for licensing then we think.</p>
<p>Best person to answer your all queries over licensing is MICROSOFT itself.</p>
<p><strong>You can call Microsoft Licensing at 1-800-426-9400, Monday to Friday, 6:00 A.M. to 6:00 P.M. (Pacific Time) to speak directly to a Microsoft licensing specialist.</strong></p>
<p>If you liked this post, do like on Facebook at <strong><a href="https://www.facebook.com/mssqlfun">https://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/344/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/344/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=344&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/02/05/microsoft-sql-server-license-helpline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>How to find/modify SQLServer Agent logfile location?</title>
		<link>http://mssqlfun.com/2013/01/31/how-to-findmodify-sqlserver-agent-logfile-location/</link>
		<comments>http://mssqlfun.com/2013/01/31/how-to-findmodify-sqlserver-agent-logfile-location/#comments</comments>
		<pubDate>Thu, 31 Jan 2013 09:58:05 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[MSSQLFUN]]></category>
		<category><![CDATA[SQL Query]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Server Agent]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[TSQL]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL Server 2012]]></category>
		<category><![CDATA[Windows Registry]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=338</guid>
		<description><![CDATA[1. To get the location of SQLServer Agent log file, the log file is called SQLAGENT.out DECLARE @AGENT_ERRORLOG NVARCHAR(255) EXECUTE MASTER.DBO.XP_INSTANCE_REGREAD N&#8217;HKEY_LOCAL_MACHINE&#8217;, N&#8217;SOFTWAREMICROSOFTMSSQLSERVERSQLSERVERAGENT&#8217;, N&#8217;ERRORLOGFILE&#8217;, @AGENT_ERRORLOG OUTPUT, N&#8217;NO_OUTPUT&#8217; SELECT @@SERVERNAME SERVERNAME, @AGENT_ERRORLOG AGENTERRORLOGLOCATION This command will work for both default &#38; named instance. 2. To modify location and name of SQLServer Agent log file USE [MSDB] &#8230; <a href="http://mssqlfun.com/2013/01/31/how-to-findmodify-sqlserver-agent-logfile-location/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=338&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>1. To get the location of SQLServer Agent log file, the log file is called SQLAGENT.out</strong></p>
<p>DECLARE @AGENT_ERRORLOG NVARCHAR(255)</p>
<p>EXECUTE MASTER.DBO.XP_INSTANCE_REGREAD N&#8217;HKEY_LOCAL_MACHINE&#8217;,</p>
<p>N&#8217;SOFTWAREMICROSOFTMSSQLSERVERSQLSERVERAGENT&#8217;,</p>
<p>N&#8217;ERRORLOGFILE&#8217;,</p>
<p>@AGENT_ERRORLOG OUTPUT,</p>
<p>N&#8217;NO_OUTPUT&#8217;</p>
<p>SELECT @@SERVERNAME SERVERNAME, @AGENT_ERRORLOG AGENTERRORLOGLOCATION</p>
<p><img class="alignnone size-full wp-image-339" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0013.png?w=960"   /></p>
<p><img class="alignnone size-full wp-image-340" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0042.png?w=960"   /></p>
<p><strong>This command will work for both default &amp; named instance.</strong></p>
<p><strong>2. To modify location and name of SQLServer Agent log file</strong></p>
<p>USE [MSDB]</p>
<p>GO</p>
<p>EXEC MSDB.DBO.SP_SET_SQLAGENT_PROPERTIES @ERRORLOG_FILE=N&#8217;C:TEMPSQLAGENT.OUT&#8217;</p>
<p>GO</p>
<p><img class="alignnone size-full wp-image-341" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0052.png?w=960"   /></p>
<p><strong>3. To recycle SQLServer Agent log file</strong></p>
<p>EXEC MSDB.DBO.SP_CYCLE_AGENT_ERRORLOG</p>
<p>When SQLServer Agent recycles the log file, SQLAGENT.out will be SQLAGENT.1 &amp; SQLAGENT.1 will be SQLAGENT.2 and so on.</p>
<p>If you liked this post, do like on Facebook at <strong><a href="https://www.facebook.com/mssqlfun">https://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/338/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/338/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=338&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/31/how-to-findmodify-sqlserver-agent-logfile-location/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0013.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0042.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0052.png" medium="image" />
	</item>
		<item>
		<title>SQL Server Silent  unattended installation using configuration file</title>
		<link>http://mssqlfun.com/2013/01/29/sql-server-silent-unattended-installation-using-configuration-file/</link>
		<comments>http://mssqlfun.com/2013/01/29/sql-server-silent-unattended-installation-using-configuration-file/#comments</comments>
		<pubDate>Tue, 29 Jan 2013 08:56:49 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Installation]]></category>
		<category><![CDATA[MSSQLFUN]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL Server 2012]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=325</guid>
		<description><![CDATA[1) Open Installation Wizard 2) Select Feature You want to install 3) Provide installation configuration 4) Now that you have the configuration file, copy it to your own folder or network share where you want to start the unattended installation. 5) Cancel setup as we are interested in the unattended silent mode of installation; not &#8230; <a href="http://mssqlfun.com/2013/01/29/sql-server-silent-unattended-installation-using-configuration-file/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=325&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>1) Open Installation Wizard</p>
<div id="attachment_329" class="wp-caption alignnone" style="width: 595px"><a href="http://mssqlfun.files.wordpress.com/2013/01/image002.jpg"><img class="size-full wp-image-329" title="Open Installation Wizard" alt="Open Installation Wizard" src="http://mssqlfun.files.wordpress.com/2013/01/image002.jpg?w=960"   /></a><p class="wp-caption-text">Open Installation Wizard</p></div>
<p>2) Select Feature You want to install</p>
<div id="attachment_330" class="wp-caption alignnone" style="width: 593px"><a href="http://mssqlfun.files.wordpress.com/2013/01/image009.jpg"><img class="size-full wp-image-330" title="Select Feature You want to install" alt="Select Feature You want to install" src="http://mssqlfun.files.wordpress.com/2013/01/image009.jpg?w=960"   /></a><p class="wp-caption-text">Select Feature You want to install</p></div>
<p>3) Provide installation configuration</p>
<div id="attachment_331" class="wp-caption alignnone" style="width: 593px"><a href="http://mssqlfun.files.wordpress.com/2013/01/image010.jpg"><img class="size-full wp-image-331" title="Provide installation configuration" alt="Provide installation configuration" src="http://mssqlfun.files.wordpress.com/2013/01/image010.jpg?w=960"   /></a><p class="wp-caption-text">Provide installation configuration</p></div>
<p>4) Now that you have the configuration file, copy it to your own folder or network share where you want to start the unattended installation.</p>
<div id="attachment_336" class="wp-caption alignnone" style="width: 606px"><a href="http://mssqlfun.files.wordpress.com/2013/01/untitled.png"><img class="size-full wp-image-336 " title="Configuration file" alt="Configuration file" src="http://mssqlfun.files.wordpress.com/2013/01/untitled.png?w=960"   /></a><p class="wp-caption-text">Configuration file</p></div>
<p>5) Cancel setup as we are interested in the unattended silent mode of installation; not the UI one.</p>
<p>6) Edit the configuration file as follows:</p>
<ol start="1">
<li>Set QUIET to “True”. This specifies that Setup will run in a quiet mode without any user interface</li>
</ol>
<p>i. <code>QUIET="True"</code></p>
<ol start="2">
<li>Set SQLSYSADMINACCOUNTS to “BUILTINADMINISTRATORS”. This will ensure that administrators on the machine are added as members of the sysadmin role. You can set its value based on your needs (Ex: SQLSYSADMINACCOUNTS=”domainYourUser”), but this is the more generic approach. I have added My user instead of <code>BUILTINADMINISTRATORS, to secure SQL server from unwanted logins.</code></li>
</ol>
<p>i. <code>SQLSYSADMINACCOUNTS="BUILTINADMINISTRATORS"</code></p>
<ol start="3">
<li>Add PID and set its value to your product license key. If your setup.exe already comes preloaded with the key, there is no need to add this option to the configuration file.</li>
</ol>
<ol start="4">
<li>Add IACCEPTSQLSERVERLICENSETERMS and set its value to “True”. This is to require to acknowledge acceptance of the license terms at time of unattended installations.</li>
</ol>
<p>i. <code>IACCEPTSQLSERVERLICENSETERMS="True</code></p>
<ol start="5">
<li>Remove the ADDCURRENTUSERASSQLADMIN parameter. The reason is that this parameter can’t be used when SQLSYSADMINACCOUNTS is specified, and it only applies to Express installations.</li>
</ol>
<ol start="6">
<li>Remove the UIMODE parameter as it can’t be used with the QUITE parameter.</li>
</ol>
<ol start="7">
<li>Remove INSTALLSHAREDDIR, INSTALLSHAREDWOWDIR, INSTANCEDIR parameters if you want to install on the default installation directories or mention appropriate directories for installation.</li>
</ol>
<ol start="8">
<li>You can add or remove the feature you want to install, Select FEATURES=SQLENGINE,SSMS,ADV_SSMS in the configuration file. You can change that based on your needs.</li>
</ol>
<ol start="9">
<li>The full list of available feature parameters and their descriptions : <a href="http://msdn.microsoft.com/en-us/library/ms144259.aspx#Feature">http://msdn.microsoft.com/en-us/library/ms144259.aspx#Feature</a></li>
</ol>
<ol start="10">
<li>Now, Your configuration file is ready, you need to create a batch file that will run the silent unattended setup. Create a new file ”SQLServer2012_SilentInstall” with extension = “.bat”.</li>
</ol>
<p>We have added, Date time to get the time taken by complete installation. Edit below script with your setup &amp; configuration file location.</p>
<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td valign="top">@ECHO offecho Installing SQL Server 2008 R2date/ttime /t</p>
<p>&#8220;D:SQLFULL_x86_ENUsetup.exe&#8221; /ConfigurationFile=&#8221;D:ConfigurationFile.ini&#8221;</p>
<p>date/t</p>
<p>time /t</td>
</tr>
</tbody>
</table>
<p>7) My SQL Server got installed</p>
<div id="attachment_327" class="wp-caption alignnone" style="width: 670px"><a href="http://mssqlfun.files.wordpress.com/2013/01/image015.png"><img class="size-full wp-image-327" title="SQL Server got installed" alt="SQL Server got installed" src="http://mssqlfun.files.wordpress.com/2013/01/image015.png?w=960"   /></a><p class="wp-caption-text">SQL Server got installed</p></div>
<p>8) Let’s Verify</p>
<div id="attachment_328" class="wp-caption alignnone" style="width: 511px"><a href="http://mssqlfun.files.wordpress.com/2013/01/image017.png"><img class="size-full wp-image-328" title="SQL Server Installed" alt="SQL Server Installed" src="http://mssqlfun.files.wordpress.com/2013/01/image017.png?w=960"   /></a><p class="wp-caption-text">SQL Server Installed</p></div>
<p>If you liked this post, do like on Facebook at <strong><a href="http://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/" rel="nofollow">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/325/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/325/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=325&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/29/sql-server-silent-unattended-installation-using-configuration-file/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image002.jpg" medium="image">
			<media:title type="html">Open Installation Wizard</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image009.jpg" medium="image">
			<media:title type="html">Select Feature You want to install</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image010.jpg" medium="image">
			<media:title type="html">Provide installation configuration</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/untitled.png" medium="image">
			<media:title type="html">Configuration file</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image015.png" medium="image">
			<media:title type="html">SQL Server got installed</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image017.png" medium="image">
			<media:title type="html">SQL Server Installed</media:title>
		</media:content>
	</item>
		<item>
		<title>Cumulative Update &#8211; 2 for SQL Server 2012 Service Pack 1 Is Now Available !</title>
		<link>http://mssqlfun.com/2013/01/26/cumulative-update-2-for-sql-server-2012-service-pack-1-is-now-available/</link>
		<comments>http://mssqlfun.com/2013/01/26/cumulative-update-2-for-sql-server-2012-service-pack-1-is-now-available/#comments</comments>
		<pubDate>Sat, 26 Jan 2013 00:00:09 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[MSSQLFUN]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[CU]]></category>
		<category><![CDATA[SQL Server 2012]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/01/26/cumulative-update-2-for-sql-server-2012-service-pack-1-is-now-available/</guid>
		<description><![CDATA[The 2nd cumulative update release for SQL Server 2012 Service Pack 1 is now available. Cumulative Update 2 contains all the hotfixes released since the initial release of SQL Server 2012 SP1. Those who are facing severe issues with their environment, they can plan to test CU2 in test environment &#38; then move to Production &#8230; <a href="http://mssqlfun.com/2013/01/26/cumulative-update-2-for-sql-server-2012-service-pack-1-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=320&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The 2nd cumulative update release for SQL Server 2012 Service Pack 1 is now available. Cumulative Update 2 contains all the hotfixes released since the initial release of SQL Server 2012 SP1.</p>
<p>Those who are facing severe issues with their environment, they can plan to test CU2 in test environment &amp; then move to Production after satisfactory results.</p>
<p>To other, I suggest to wait for SP2 final release to deploy on your production environment, to have consolidate build.</p>
<p><strong>KB Article For CU2 of SQL Server 2012 SP1</strong></p>
<ul>
<li>CU#2 KB Article: <a href="http://support.microsoft.com/kb/2790947">http://support.microsoft.com/kb/2790947</a></li>
</ul>
<p><strong>Previous Cumulative Update KB Articles of SQL Server 2012 SP1</strong></p>
<ul>
<li>CU#1 KB Article: <a href="http://support.microsoft.com/kb/2765331">http://support.microsoft.com/kb/2765331</a></li>
</ul>
<p><strong>SQL Server 2012 SP1 Cumulative Update #2 has also two new improvements. For more details reference this <a href="http://blogs.technet.com/b/stbnewsbytes/archive/2013/01/24/january-24-2013-news-thursday-microsoft-virtualization-jump-start-and-more-server-and-tools-news.aspx"> blog</a></strong></p>
<p>If you liked this post, do like on Facebook at <a href="http://www.facebook.com/mssqlfun"><b>http://www.facebook.com</b><strong>/mssqlfun</strong></a></p>
<p>Reference : <strong>Rohit Garg (</strong><a href="http://mssqlfun.com/"><b>http://mssqlfun.com/</b></a><strong>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/320/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/320/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=320&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/26/cumulative-update-2-for-sql-server-2012-service-pack-1-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Cumulative Update &#8211; 9 for SQL Server 2008 Service Pack 3 Is Now Available !</title>
		<link>http://mssqlfun.com/2013/01/23/cumulative-update-9-for-sql-server-2008-service-pack-3-is-now-available/</link>
		<comments>http://mssqlfun.com/2013/01/23/cumulative-update-9-for-sql-server-2008-service-pack-3-is-now-available/#comments</comments>
		<pubDate>Wed, 23 Jan 2013 00:08:21 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[MSSQLFUN]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Service Pack]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[CU]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/01/23/cumulative-update-9-for-sql-server-2008-service-pack-3-is-now-available/</guid>
		<description><![CDATA[The 9th cumulative update release for SQL Server 2008 Service Pack 3 is now available. Cumulative Update 9 contains all the hotfixes released since the initial release of SQL Server 2008 SP3. Those who are facing severe issues with their environment, they can plan to test CU9 in test environment &#38; then move to Production &#8230; <a href="http://mssqlfun.com/2013/01/23/cumulative-update-9-for-sql-server-2008-service-pack-3-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=301&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The 9th cumulative update release for SQL Server 2008 Service Pack 3 is now available. Cumulative Update 9 contains all the hotfixes released since the initial release of SQL Server 2008 SP3.</p>
<p>Those who are facing severe issues with their environment, they can plan to test CU9 in test environment &amp; then move to Production after satisfactory results.</p>
<p>To other, I suggest to wait for SP4 final release to deploy on your production environment, to have consolidate build.</p>
<p><strong>KB Article For CU9 of SQL Server 2008 SP3</strong></p>
<ul>
<li>CU#9 KB Article: <a href="http://support.microsoft.com/kb/2799883">http://support.microsoft.com/kb/2799883</a></li>
</ul>
<p><strong>Previous Cumulative Update KB Articles of SQL Server 2008 SP3:</strong></p>
<ul>
<li>CU#8 KB Article: <a href="http://support.microsoft.com/kb/2771833">http://support.microsoft.com/kb/2771833</a></li>
<li>CU#7 KB Article: <a href="http://support.microsoft.com/kb/2738350">http://support.microsoft.com/kb/2738350</a></li>
<li>CU#6 KB Article: <a href="http://support.microsoft.com/kb/2715953">http://support.microsoft.com/kb/2715953</a></li>
<li>CU#5 KB Article: <a href="http://support.microsoft.com/kb/2696626">http://support.microsoft.com/kb/2696626</a></li>
<li>CU#4 KB Article: <a href="http://support.microsoft.com/kb/2673383">http://support.microsoft.com/kb/2673383</a></li>
<li>CU#3 KB Article: <a href="http://support.microsoft.com/kb/2648098">http://support.microsoft.com/kb/2648098</a></li>
<li>CU#2 KB Article: <a href="http://support.microsoft.com/kb/2633143">http://support.microsoft.com/kb/2633143</a></li>
<li>CU#1 KB Article: <a href="http://support.microsoft.com/kb/2617146">http://support.microsoft.com/kb/2617146</a></li>
</ul>
<p>If you liked this post, do like on Facebook at <strong><a href="https://www.facebook.com/mssqlfun">http://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/301/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/301/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=301&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/23/cumulative-update-9-for-sql-server-2008-service-pack-3-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server Reserve 1 user connection for DAC (Dedicated Administrator Connection)&#8230;&#8230;want to confirm ?</title>
		<link>http://mssqlfun.com/2013/01/21/sql-server-reserve-1-user-connection-for-dac-dedicated-administrator-connection-want-to-confirm/</link>
		<comments>http://mssqlfun.com/2013/01/21/sql-server-reserve-1-user-connection-for-dac-dedicated-administrator-connection-want-to-confirm/#comments</comments>
		<pubDate>Mon, 21 Jan 2013 20:03:32 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[DAC]]></category>
		<category><![CDATA[MSSQLFUN]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[SQL Tips & Tricks]]></category>
		<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL]]></category>
		<category><![CDATA[SQL 2005]]></category>
		<category><![CDATA[SQL 2000]]></category>
		<category><![CDATA[SQL 2008]]></category>
		<category><![CDATA[SQL 2008 R2]]></category>
		<category><![CDATA[SQL 2012]]></category>
		<category><![CDATA[SQLCMD]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=285</guid>
		<description><![CDATA[Sometime before, I was giving training on basics of SQL Server. One of attendee is having doubt &#38; want to confirm that SQL Server really Reserve 1 user connection for DAC (Dedicated Administrator Connection). So I decide to show a demo for the same. I have changed the no. of User Connections to 1 &#38; &#8230; <a href="http://mssqlfun.com/2013/01/21/sql-server-reserve-1-user-connection-for-dac-dedicated-administrator-connection-want-to-confirm/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=285&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Sometime before, I was giving training on basics of SQL Server. One of attendee is having doubt &amp; want to confirm that SQL Server really Reserve 1 user connection for DAC (Dedicated Administrator Connection).</p>
<p>So I decide to show a demo for the same. I have changed the no. of User Connections to 1 &amp; then try to login. So below is the PROOF.</p>
<p>Steps Performed for Demo</p>
<p>1. User Connections Current settings</p>
<p><img class="size-full wp-image-286 alignnone" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0012.png?w=960"   /></p>
<p>2. User Connections New settings. You need to restart SQL Services after this.</p>
<p><img class="alignnone size-full wp-image-287" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0022.png?w=960"   /></p>
<p>3. I Try to Login to SQL Server by SSMS &amp; got Error. But Why ?</p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/01/image0031.png"><img class="alignnone size-full wp-image-288" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0031.png?w=960"   /></a></p>
<p>4. I Try to Login to SQL Server by SQLCMD &amp; got Error. But Why ?</p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/01/image0041.png"><img class="alignnone size-full wp-image-289" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0041.png?w=960"   /></a></p>
<p>5. Reason of getting error at step 3 &amp; 4 is DAC (Dedicated Administrator Connection). SQL Server reserve one user connection for DAC.</p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/01/image0051.png"><img class="alignnone size-full wp-image-290" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0051.png?w=960"   /></a></p>
<p>6. Rollback the changes using DAC &amp; come back to previous settings. You need to restart SQL Services after this.</p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/01/image0061.png"><img class="alignnone size-full wp-image-291" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0061.png?w=960"   /></a></p>
<p>7. User Connections After Rollback</p>
<p><img class="alignnone size-full wp-image-286" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0012.png?w=960"   /></p>
<p>If you liked this post, do like on Facebook at <strong><a href="https://www.facebook.com/mssqlfun">https://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/285/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/285/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=285&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/21/sql-server-reserve-1-user-connection-for-dac-dedicated-administrator-connection-want-to-confirm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0012.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0022.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0031.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0041.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0051.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0061.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0012.png" medium="image" />
	</item>
		<item>
		<title>The server principal &#8220;xxxx&#8221; is not able to access the database &#8220;msdb&#8221; under the current security context.</title>
		<link>http://mssqlfun.com/2013/01/15/the-server-principal-xxxx-is-not-able-to-access-the-database-msdb-under-the-current-security-context/</link>
		<comments>http://mssqlfun.com/2013/01/15/the-server-principal-xxxx-is-not-able-to-access-the-database-msdb-under-the-current-security-context/#comments</comments>
		<pubDate>Tue, 15 Jan 2013 00:36:36 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Errors]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=274</guid>
		<description><![CDATA[Problem : Yesterday Night, One of my team member called &#38; report that some users are getting below error no. 1 while connection to SQL server &#38; error no. 2 while trying to open Management folder. Error 1 : Cannot display policy health state at the server level, because the user doesn’t have permission. Permission &#8230; <a href="http://mssqlfun.com/2013/01/15/the-server-principal-xxxx-is-not-able-to-access-the-database-msdb-under-the-current-security-context/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=274&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>Problem :</strong></p>
<p>Yesterday Night, One of my team member called &amp; report that some users are getting below error no. 1 while connection to SQL server &amp; error no. 2 while trying to open Management folder.</p>
<p><strong>Error 1</strong> : Cannot display policy health state at the server level, because the user doesn’t have permission. Permission to access the msdb database is required for this feature to work correctly.</p>
<p><div id="attachment_313" class="wp-caption alignleft" style="width: 621px"><a href="http://mssqlfun.files.wordpress.com/2013/01/cannot-display-policy-health-state-at-the-server-level-because-the-user-doesn_t-have-permission.png"><img class="size-full wp-image-313" alt="Cannot display policy health state at the server level, because the user doesn’t have permission" src="http://mssqlfun.files.wordpress.com/2013/01/cannot-display-policy-health-state-at-the-server-level-because-the-user-doesn_t-have-permission.png?w=960"   /></a><p class="wp-caption-text">Cannot display policy health state at the server level, because the user doesn’t have permission</p></div>
<p><strong>Error 2</strong> : The server principal &#8220;xxxx&#8221; is not able to access the database &#8220;msdb&#8221; under the current security context. (Microsoft SQL Server, Error: 916)</p>
<p><div id="attachment_317" class="wp-caption alignleft" style="width: 621px"><a href="http://mssqlfun.files.wordpress.com/2013/01/the-server-principal-is-not-able-to-access-the-database-msdb-under-the-current-security-context.png"><img class="size-full wp-image-317" alt="The server principal is not able to access the database msdb under the current security context" src="http://mssqlfun.files.wordpress.com/2013/01/the-server-principal-is-not-able-to-access-the-database-msdb-under-the-current-security-context.png?w=960"   /></a><p class="wp-caption-text">The server principal is not able to access the database msdb under the current security context</p></div>
<p><strong>Analysis &amp; Resolution : -</strong></p>
<p>Most suspicious thing was, some users are facing issue &amp; some user are working fine. When I goes into depth, I have found that user have super rights on SQL Server &amp; on MSDB are working fine.</p>
<p>That means, it is clearly a permission issue but it is effecting random users in bulk.</p>
<p>Reason in my case : CONNECT permissions are denied from PUBLIC role.</p>
<p><strong>Query to check CONNECT permissions :-</strong></p>
<p>USE MSDB</p>
<p>GO</p>
<p>SELECT USER_NAME(P.GRANTEE_PRINCIPAL_ID) AS PRINCIPAL_NAME,</p>
<p>DP.PRINCIPAL_ID,</p>
<p>DP.TYPE_DESC AS PRINCIPAL_TYPE_DESC,</p>
<p>P.CLASS_DESC,</p>
<p>OBJECT_NAME(P.MAJOR_ID) AS OBJECT_NAME,</p>
<p>P.PERMISSION_NAME,</p>
<p>P.STATE_DESC AS PERMISSION_STATE_DESC</p>
<p>FROM SYS.DATABASE_PERMISSIONS P</p>
<p>INNER JOIN SYS.DATABASE_PRINCIPALS DP</p>
<p>ON P.GRANTEE_PRINCIPAL_ID = DP.PRINCIPAL_ID</p>
<p>WHERE P.STATE_DESC = &#8216;DENY&#8217;</p>
<p><img class="alignnone size-full wp-image-275" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image004.png?w=960"   /></p>
<p>We have 2 possible solutions :-</p>
<p>1) Provide connect permissions to all user sepratly</p>
<p>2) Provide CONNECT permission to PUBLIC role</p>
<p>We have resolved the issue by running below command. Connect permissions was reestablished on PUBLIC role.</p>
<p>GRANT CONNECT TO PUBLIC</p>
<p><img class="alignnone size-full wp-image-276" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image003.png?w=960"   /></p>
<p>If you liked this post, do like on Facebook at <strong><a href="https://www.facebook.com/mssqlfun">https://www.facebook.com/mssqlfun</a></strong></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/274/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/274/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=274&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/15/the-server-principal-xxxx-is-not-able-to-access-the-database-msdb-under-the-current-security-context/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/cannot-display-policy-health-state-at-the-server-level-because-the-user-doesn_t-have-permission.png" medium="image">
			<media:title type="html">Cannot display policy health state at the server level, because the user doesn’t have permission</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/the-server-principal-is-not-able-to-access-the-database-msdb-under-the-current-security-context.png" medium="image">
			<media:title type="html">The server principal is not able to access the database msdb under the current security context</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image004.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image003.png" medium="image" />
	</item>
		<item>
		<title>Under which user your SQL Agent Job run : SQL Agent Service Account or SQL Agent Job Owner ?</title>
		<link>http://mssqlfun.com/2013/01/11/under-which-user-your-sql-agent-job-run-sql-agent-service-account-or-sql-agent-job-owner/</link>
		<comments>http://mssqlfun.com/2013/01/11/under-which-user-your-sql-agent-job-run-sql-agent-service-account-or-sql-agent-job-owner/#comments</comments>
		<pubDate>Fri, 11 Jan 2013 09:29:42 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=265</guid>
		<description><![CDATA[Today, I am willing to do demo that under which user my SQL Agent Job run, SQL Agent Service Account or SQL Agent Job Owner ? Normally, We think its SQL Agent Service account user under which SQL jobs runs. But it’s not true in all cases, It depend on your Job owner permissions. If &#8230; <a href="http://mssqlfun.com/2013/01/11/under-which-user-your-sql-agent-job-run-sql-agent-service-account-or-sql-agent-job-owner/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=265&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Today, I am willing to do demo that under which user my SQL Agent Job run, SQL Agent Service Account or SQL Agent Job Owner ?</p>
<p>Normally, We think its SQL Agent Service account user under which SQL jobs runs. But it’s not true in all cases, It depend on your Job owner permissions.</p>
<p>If the job owner is an account that is in the sysadmin fixed server role, than your step of job will be executed under the SQL Agent Service Account.</p>
<p>Otherwise, It will be executed by the account set as the job owner, no matter who is starting the job.</p>
<p><strong>Exception : The job step is a CmdExec or ActiveXScript job step</strong></p>
<p>If the job owner is an account that is in the sysadmin fixed server role, than your step of job will be executed under the SQL Agent Service Account.</p>
<p>Otherwise the step of job will be executed under the security account of the <em>Proxy Account</em> if enabled and configured.</p>
<p>If that proxy account is not configured the step will fail with Below Error.</p>
<p><em>Non-SysAdmins have been denied permission to run CmdExec job steps without a proxy account. The step failed.</em></p>
<p><strong>Test Job run under SQL Agent Service account when Job owner is ‘sa’</strong></p>
<p><img class="alignnone size-full wp-image-266" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0011.png?w=960"   /></p>
<p><strong>Test Job run under Job Owner ‘test’ user when Job owner is ‘test’ (non –sysadmin account)</strong></p>
<p><img class="alignnone size-full wp-image-267" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image0021.png?w=960"   /></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/265/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/265/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=265&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/11/under-which-user-your-sql-agent-job-run-sql-agent-service-account-or-sql-agent-job-owner/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0011.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image0021.png" medium="image" />
	</item>
		<item>
		<title>The EXECUTE permission was denied on the object &#039;sp_start_job&#039;, database &#039;msdb&#039;, schema &#039;dbo&#039;.</title>
		<link>http://mssqlfun.com/2013/01/09/264/</link>
		<comments>http://mssqlfun.com/2013/01/09/264/#comments</comments>
		<pubDate>Wed, 09 Jan 2013 10:11:51 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/01/09/264/</guid>
		<description><![CDATA[Reblogged from MSSQLFUN: Issue : Today I have read one issue over one forum, One user is having below 3 DB roles on MSDB but whenever user try to run SQL Agent job, it get below error message. We have Checked that SQL Agent job related DB role is properly given to user. Also, Job &#8230; <a href="http://mssqlfun.com/2013/01/09/264/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=264&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<div class="reblog-post"><p class="reblog-from"><img alt='' src='http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=25&amp;d=identicon&amp;r=G' class='avatar avatar-25' height='25' width='25' /> <a href="http://mssqlfun.com/2013/01/09/the-execute-permission-was-denied-on-the-object-sp_start_job-database-msdb-schema-dbo/">Reblogged from MSSQLFUN:</a></p><div class="wpcom-enhanced-excerpt"><div class="wpcom-enhanced-excerpt-content"><a href="http://mssqlfun.com/2013/01/09/the-execute-permission-was-denied-on-the-object-sp_start_job-database-msdb-schema-dbo/" target="_self"><img src="http://mssqlfun.files.wordpress.com/2013/01/image001.png?w=960" alt="Click to visit the original post" class="size-full" /></a><ul class="thumb-list"><li><a href="http://mssqlfun.com/2013/01/09/the-execute-permission-was-denied-on-the-object-sp_start_job-database-msdb-schema-dbo/" target="_self"><img src="http://mssqlfun.files.wordpress.com/2013/01/image002.png?w=72&crop=1&h=72" alt="Click to visit the original post" class="size-thumb" width="72" height="72" /></a></li></ul>
<p><strong>Issue : </strong>Today I have read one issue over one forum, One user is having below 3 DB roles on MSDB but whenever user try to run SQL Agent job, it get below error message.</p>
<p>We have Checked that SQL Agent job related DB role is properly given to user. Also, Job is working fine by the use is having sysadmin roles.</p>
</div> <p class="read-more"><a href="http://mssqlfun.com/2013/01/09/the-execute-permission-was-denied-on-the-object-sp_start_job-database-msdb-schema-dbo/" target="_self"><span>Read more&hellip;</span> 143 more words</a></p></div></div> ]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/09/264/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>The EXECUTE permission was denied on the object &#8216;sp_start_job&#8217;, database &#8216;msdb&#8217;, schema &#8216;dbo&#8217;.</title>
		<link>http://mssqlfun.com/2013/01/09/the-execute-permission-was-denied-on-the-object-sp_start_job-database-msdb-schema-dbo/</link>
		<comments>http://mssqlfun.com/2013/01/09/the-execute-permission-was-denied-on-the-object-sp_start_job-database-msdb-schema-dbo/#comments</comments>
		<pubDate>Wed, 09 Jan 2013 09:57:43 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Errors]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=258</guid>
		<description><![CDATA[Issue : Today I have read one issue over one forum, One user is having below 3 DB roles on MSDB but whenever user try to run SQL Agent job, it get below error message. We have Checked that SQL Agent job related DB role is properly given to user. Also, Job is working fine &#8230; <a href="http://mssqlfun.com/2013/01/09/the-execute-permission-was-denied-on-the-object-sp_start_job-database-msdb-schema-dbo/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=258&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>Issue : </strong>Today I have read one issue over one forum, One user is having below 3 DB roles on MSDB but whenever user try to run SQL Agent job, it get below error message.</p>
<p>We have Checked that SQL Agent job related DB role is properly given to user. Also, Job is working fine by the use is having sysadmin roles.</p>
<p>· SQLAgentUserRole</p>
<p>· SQLAgentReaderRole</p>
<p>· SQLAgentOperatorRole</p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/01/image001.png"><img class="alignnone size-full wp-image-259" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image001.png?w=960"   /></a></p>
<p><strong>Resolution</strong> : We have found that someone has deny the execute permissions from SQLAgentUserRole over sp_start_job store procedure in MSDB.</p>
<p>We have Run the below query to check the permissions over sp_start_job store procedure in MSDB.</p>
<p>USE MSDB</p>
<p>GO</p>
<p>SELECT PR.NAME, DP.PERMISSION_NAME, DP.STATE_DESC</p>
<p>FROM MSDB.SYS.DATABASE_PERMISSIONS DP</p>
<p>JOIN MSDB.SYS.OBJECTS O ON DP.MAJOR_ID = O.OBJECT_ID</p>
<p>JOIN MSDB.SYS.DATABASE_PRINCIPALS PR</p>
<p>ON DP.GRANTEE_PRINCIPAL_ID = PR.PRINCIPAL_ID</p>
<p>WHERE O.NAME = &#8216;SP_START_JOB&#8217;</p>
<p>Found that someone has deny the execute permissions from SQLAgentUserRole over sp_start_job store procedure in MSDB.</p>
<p><img class="alignnone size-full wp-image-260" alt="" src="http://mssqlfun.files.wordpress.com/2013/01/image002.png?w=960"   /></p>
<p>By running the below query, execute permission has been given back &amp; issue has been resolved.</p>
<p>USE MSDB</p>
<p>GO</p>
<p>GRANT EXECUTE ON SP_START_JOB TO SQLAGENTUSERROLE</p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/258/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=258&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/09/the-execute-permission-was-denied-on-the-object-sp_start_job-database-msdb-schema-dbo/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image001.png" medium="image" />

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/image002.png" medium="image" />
	</item>
		<item>
		<title>How to move file through FTP by CMD ?</title>
		<link>http://mssqlfun.com/2013/01/07/how-to-move-file-through-ftp-by-cmd-2/</link>
		<comments>http://mssqlfun.com/2013/01/07/how-to-move-file-through-ftp-by-cmd-2/#comments</comments>
		<pubDate>Mon, 07 Jan 2013 11:24:28 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2013/01/07/how-to-move-file-through-ftp-by-cmd-2/</guid>
		<description><![CDATA[CMD code to upload file direct into root of FTP site of server @ echo off REM ******** this batch file is to upload file echo user username&#62; ftpcmd.dat echo password&#62;&#62; ftpcmd.dat echo bin&#62;&#62; ftpcmd.dat echo lcd D:\Filelocation&#62;&#62;ftpcmd.dat echo put filename.csv&#62;&#62; ftpcmd.dat echo quit&#62;&#62; ftpcmd.dat ftp -n -s:ftpcmd.dat 172.xx.xx.xxx del ftpcmd.dat CMD code to upload &#8230; <a href="http://mssqlfun.com/2013/01/07/how-to-move-file-through-ftp-by-cmd-2/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=256&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>CMD code to upload file direct into root of FTP site of server</strong></p>
<p>@ echo off</p>
<p>REM ******** this batch file is to upload file</p>
<p>echo user username&gt; ftpcmd.dat</p>
<p>echo password&gt;&gt; ftpcmd.dat</p>
<p>echo bin&gt;&gt; ftpcmd.dat</p>
<p>echo lcd D:\Filelocation&gt;&gt;ftpcmd.dat</p>
<p>echo put filename.csv&gt;&gt; ftpcmd.dat</p>
<p>echo quit&gt;&gt; ftpcmd.dat</p>
<p>ftp -n -s:ftpcmd.dat 172.xx.xx.xxx</p>
<p>del ftpcmd.dat</p>
<p><strong>CMD code to upload file direct into sub directory of FTP site of server</strong></p>
<p>@ echo off</p>
<p>REM ******** this batch file is to upload file</p>
<p>echo user username&gt; ftpcmd.dat</p>
<p>echo password&gt;&gt; ftpcmd.dat</p>
<p>echo bin&gt;&gt; ftpcmd.dat</p>
<p>echo lcd D:\Filelocation&gt;&gt;ftpcmd.dat</p>
<p>echo put filename.csv .\Subdirectory\ filename.csv &gt;&gt; ftpcmd.dat</p>
<p>echo quit&gt;&gt; ftpcmd.dat</p>
<p>ftp -n -s:ftpcmd.dat 172.xx.xx.xxx</p>
<p>del ftpcmd.dat</p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/256/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=256&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/07/how-to-move-file-through-ftp-by-cmd-2/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>What happen, If SQL Server new instance try to use exitsing named instance name?</title>
		<link>http://mssqlfun.com/2013/01/04/what-happen-if-sql-server-new-instance-try-to-use-exitsing-named-instance-name/</link>
		<comments>http://mssqlfun.com/2013/01/04/what-happen-if-sql-server-new-instance-try-to-use-exitsing-named-instance-name/#comments</comments>
		<pubDate>Fri, 04 Jan 2013 09:29:08 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=199</guid>
		<description><![CDATA[We all know that SQL Server can have 1 default instance &#38; many named instance. But I want to check, How SQL Server Setup behave, If I tries to use instance name that is already being used by some existing SQL server on my system. I am already having 2 instances running on my system, &#8230; <a href="http://mssqlfun.com/2013/01/04/what-happen-if-sql-server-new-instance-try-to-use-exitsing-named-instance-name/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=199&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>We all know that SQL Server can have 1 default instance &amp; many named instance.</p>
<p>But I want to check, How SQL Server Setup behave, If I tries to use instance name that is already being used by some existing SQL server on my system.</p>
<p>I am already having 2 instances running on my system, 1 SQL Server 2008 &amp; 1 SQL Server 2012.</p>
<p><strong><em>I must say, SQL Server setup is too cleaver. It shows me that instance that use the name (passed by me) &amp; show me a SQL server version of that instance as well.</em></strong></p>
<p>In same way, It works for both default &amp; Named instance.</p>
<p>1) While installing 3rd instance of SQL Server 2005, I pass the instance name used by SQL Server 2008.</p>
<p><a href="http://mssqlfun.files.wordpress.com/2012/10/image003.png"><img class="alignnone size-full wp-image-201" title="image003" alt="" src="http://mssqlfun.files.wordpress.com/2012/10/image003.png?w=960"   /></a></p>
<p>2) While installing 3rd instance of SQL Server 2005, I pass the instance name used by SQL Server 2012.</p>
<p><a href="http://mssqlfun.files.wordpress.com/2012/10/image0041.png"><img class="alignnone size-full wp-image-200" title="image0041" alt="" src="http://mssqlfun.files.wordpress.com/2012/10/image0041.png?w=960"   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/199/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/199/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=199&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/04/what-happen-if-sql-server-new-instance-try-to-use-exitsing-named-instance-name/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2012/10/image003.png" medium="image">
			<media:title type="html">image003</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2012/10/image0041.png" medium="image">
			<media:title type="html">image0041</media:title>
		</media:content>
	</item>
		<item>
		<title>MSSQLFUN &#8211; Year 2012 Review</title>
		<link>http://mssqlfun.com/2013/01/03/mssqlfun-year-2012-review/</link>
		<comments>http://mssqlfun.com/2013/01/03/mssqlfun-year-2012-review/#comments</comments>
		<pubDate>Thu, 03 Jan 2013 10:52:21 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Release]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=248</guid>
		<description><![CDATA[The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog. Here&#8217;s an excerpt: 600 people reached the top of Mt. Everest in 2012. This blog got about 2,000 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 3 years to get &#8230; <a href="http://mssqlfun.com/2013/01/03/mssqlfun-year-2012-review/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=248&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The WordPress.com stats helper monkeys prepared a 2012 annual report for this blog.</p>
<p><a href="http://mssqlfun.com/2012/annual-report/"><img alt="" src="http://www.wordpress.com/wp-content/mu-plugins/annual-reports/img/2012-emailteaser.png" width="100%" /></a></p>
<p>Here&#8217;s an excerpt:</p>
<blockquote><p>600 people reached the top of Mt. Everest in 2012. This blog got about <strong>2,000</strong> views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 3 years to get that many views.</p></blockquote>
<p><a href="http://mssqlfun.com/2012/annual-report/">Click here to see the complete report.</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/248/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/248/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=248&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2013/01/03/mssqlfun-year-2012-review/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://www.wordpress.com/wp-content/mu-plugins/annual-reports/img/2012-emailteaser.png" medium="image" />
	</item>
		<item>
		<title>Happy New Year 2013</title>
		<link>http://mssqlfun.com/2012/12/31/happy-new-year-2013/</link>
		<comments>http://mssqlfun.com/2012/12/31/happy-new-year-2013/#comments</comments>
		<pubDate>Mon, 31 Dec 2012 14:22:52 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=246</guid>
		<description><![CDATA[<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=246&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><a href="http://mssqlfun.com/"><a href="http://mssqlfun.files.wordpress.com/2012/12/image0011.jpg"><img src="http://mssqlfun.files.wordpress.com/2012/12/image0011.jpg?w=960" alt=""   class="alignnone size-full wp-image-247" /></a></p>
<p></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/246/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/246/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=246&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2012/12/31/happy-new-year-2013/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2012/12/image0011.jpg" medium="image" />
	</item>
		<item>
		<title>Merry Christmas to all of you&#8230;</title>
		<link>http://mssqlfun.com/2012/12/25/merry-christmas-to-all-of-you/</link>
		<comments>http://mssqlfun.com/2012/12/25/merry-christmas-to-all-of-you/#comments</comments>
		<pubDate>Tue, 25 Dec 2012 00:58:25 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=244</guid>
		<description><![CDATA[Merry Christmas to all of you….<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=244&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Merry Christmas to all of you….</p>
<p><a href="http://mssqlfun.files.wordpress.com/2012/12/image001.jpg"><img src="http://mssqlfun.files.wordpress.com/2012/12/image001.jpg?w=960" alt=""   class="alignnone size-full wp-image-245" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/244/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/244/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=244&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2012/12/25/merry-christmas-to-all-of-you/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2012/12/image001.jpg" medium="image" />
	</item>
		<item>
		<title>SQL Server 2012 SP1 CU1 Is Now Available !</title>
		<link>http://mssqlfun.com/2012/11/22/sql-server-2012-sp1-cu1-is-now-available/</link>
		<comments>http://mssqlfun.com/2012/11/22/sql-server-2012-sp1-cu1-is-now-available/#comments</comments>
		<pubDate>Thu, 22 Nov 2012 16:31:02 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2012/11/22/sql-server-2012-sp1-cu1-is-now-available/</guid>
		<description><![CDATA[The 1st cumulative update release for SQL Server 2012 Service Pack 1 is now available for download at the Microsoft Support site. SQL Server 2012 SP1 CU1 contains fixes released in SQL Server 2012 RTM CU 3 &#38; 4. For those who are upgrading to Service Pack 1 from SQL Server 2012 RTM CU3 or &#8230; <a href="http://mssqlfun.com/2012/11/22/sql-server-2012-sp1-cu1-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=243&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The 1st cumulative update release for SQL Server 2012 Service Pack 1 is now available for download at the Microsoft Support site.</p>
<p>SQL Server 2012 SP1 CU1 contains fixes released in SQL Server 2012 RTM CU 3 &amp; 4. For those who are upgrading to Service Pack 1 from SQL Server 2012 RTM <a href="http://support.microsoft.com/kb/2723749">CU3</a> or <a href="http://support.microsoft.com/kb/2758687">CU4</a> should consider applying SQL Server 2012 SP1 CU1 to ensure fixes resident on the system are available post upgrade to Service Pack 1.</p>
<p><strong>For CU1 of SQL Server 2012 SP1</strong></p>
<ul>
<li>CU#1 KB Article: <a href="http://support.microsoft.com/kb/2765331">http://support.microsoft.com/kb/2765331</a></li>
<li>Understanding <a href="http://support.microsoft.com/kb/935897">Incremental Servicing Model</a> for SQL Server</li>
<li>SQL Server Support Information: <a href="http://support.microsoft.com/ph/2855">http://support.microsoft.com/ph/2855</a></li>
</ul>
<p><strong>Obtain SQL Server 2012 SP1</strong></p>
<p>· <a href="http://go.microsoft.com/fwlink/?LinkID=268158">Microsoft® SQL Server® 2012 SP1</a></p>
<p>· <a href="http://go.microsoft.com/fwlink/?LinkID=267905">Microsoft® SQL Server® 2012 SP1 Express</a></p>
<p>· <a href="http://go.microsoft.com/fwlink/?LinkID=268266">Microsoft® SQL Server® 2012 SP1 Feature Pack</a></p>
<p>· <a href="http://mssqlfun.com/2012/11/08/sql-server-2012-sp1-is-now-available/">http://mssqlfun.com/2012/11/08/sql-server-2012-sp1-is-now-available/</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/243/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/243/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=243&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2012/11/22/sql-server-2012-sp1-cu1-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server 2008 SP3 CU8 Is Now Available !</title>
		<link>http://mssqlfun.com/2012/11/22/sql-server-2008-sp3-cu8-is-now-available/</link>
		<comments>http://mssqlfun.com/2012/11/22/sql-server-2008-sp3-cu8-is-now-available/#comments</comments>
		<pubDate>Thu, 22 Nov 2012 16:30:43 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2012/11/22/sql-server-2008-sp3-cu8-is-now-available/</guid>
		<description><![CDATA[The 8th cumulative update release for SQL Server 2008 Service Pack 3 is now available for download at the Microsoft Support site. Cumulative Update 8 contains all the hotfixes released since the initial release of SQL Server 2008 SP3. Those who are facing severe issues with their environment, they can plan to test CU8 in &#8230; <a href="http://mssqlfun.com/2012/11/22/sql-server-2008-sp3-cu8-is-now-available/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=242&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The 8th cumulative update release for SQL Server 2008 Service Pack 3 is now available for download at the Microsoft Support site. Cumulative Update 8 contains all the hotfixes released since the initial release of SQL Server 2008 SP3.</p>
<p>Those who are facing severe issues with their environment, they can plan to test CU8 in test environment &amp; then move to Production after satisfactory results.</p>
<p>To other, I suggest to wait for SP4 final release to deploy on your production environment, to have consolidate build.</p>
<p><strong>For CU8 of SQL Server 2008 SP3</strong></p>
<ul>
<li>CU#8 KB Article: <a href="http://support.microsoft.com/kb/2771833">http://support.microsoft.com/kb/2771833</a></li>
<li>Understanding <a href="http://support.microsoft.com/kb/935897">Incremental Servicing Model</a> for SQL Server</li>
<li>SQL Server Support Information: <a href="http://support.microsoft.com/ph/2855">http://support.microsoft.com/ph/2855</a></li>
</ul>
<p><strong>Previous Cumulative Update KB Articles:</strong></p>
<ul>
<li>CU#7 KB Article: <a href="http://support.microsoft.com/kb/2738350">http://support.microsoft.com/kb/2738350</a></li>
<li>CU#6 KB Article: <a href="http://support.microsoft.com/kb/2715953">http://support.microsoft.com/kb/2715953</a></li>
<li>CU#5 KB Article: <a href="http://support.microsoft.com/kb/2696626">http://support.microsoft.com/kb/2696626</a></li>
<li>CU#4 KB Article: <a href="http://support.microsoft.com/kb/2673383">http://support.microsoft.com/kb/2673383</a></li>
<li>CU#3 KB Article: <a href="http://support.microsoft.com/kb/2648098">http://support.microsoft.com/kb/2648098</a></li>
<li>CU#2 KB Article: <a href="http://support.microsoft.com/kb/2633143">http://support.microsoft.com/kb/2633143</a></li>
<li>CU#1 KB Article: <a href="http://support.microsoft.com/kb/2617146">http://support.microsoft.com/kb/2617146</a></li>
</ul>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/242/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/242/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=242&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2012/11/22/sql-server-2008-sp3-cu8-is-now-available/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Restoring a SQL Server 2005 Full-Text Catalog to SQL Server 2012</title>
		<link>http://mssqlfun.com/2012/11/19/restoring-a-sql-server-2005-full-text-catalog-to-sql-server-2012/</link>
		<comments>http://mssqlfun.com/2012/11/19/restoring-a-sql-server-2005-full-text-catalog-to-sql-server-2012/#comments</comments>
		<pubDate>Mon, 19 Nov 2012 18:22:14 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=196</guid>
		<description><![CDATA[Upgrading fulltext data from a SQL Server 2005 database to SQL Server 2012 is to restore a full database backup to SQL Server 2012. The full database backup will include the full-text catalog is required for upgrading &#38; importing a SQL Server 2005 full-text catalog. Backup from SQL Server 2005 When the database is restored &#8230; <a href="http://mssqlfun.com/2012/11/19/restoring-a-sql-server-2005-full-text-catalog-to-sql-server-2012/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=196&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Upgrading fulltext data from a SQL Server 2005 database to SQL Server 2012 is to restore a full database backup to SQL Server 2012.</p>
<p>The full database backup will include the full-text catalog is required for upgrading &amp; importing a SQL Server 2005 full-text catalog.</p>
<p><strong><em>Backup from SQL Server 2005</em></strong></p>
<p><a href="http://mssqlfun.files.wordpress.com/2012/10/image0011.png"><img class="alignnone size-full wp-image-197" title="image0011" alt="" src="http://mssqlfun.files.wordpress.com/2012/10/image0011.png?w=960"   /></a></p>
<p>When the database is restored on SQL Server 2012, a new database file will be created for the full-text catalog. The default name of this file is ftrow_catalog-name.ndf. For example, if you catalog-name is userdetails, the default name of the SQL Server 2012 database file would be ftrow_Userdetails.ndf. But if the default name is already being used in the target directory, the new database file would be named ftrow_Userdetails-name{GUID}.ndf, where GUID is the Globally Unique Identifier of the new file.</p>
<p>After the catalogs have been upgraded, the <strong>sys.database_files</strong> and <strong>sys.master_file</strong>s are updated to remove the catalog entries and the <strong>path</strong> column in <strong>sys.fulltext_catalogs</strong> is set to NULL.</p>
<p><strong><em>File details after restore on SQL 2012</em></strong></p>
<h3><a href="http://mssqlfun.files.wordpress.com/2012/10/image002.png"><img class="alignnone size-full wp-image-198" title="image002" alt="" src="http://mssqlfun.files.wordpress.com/2012/10/image002.png?w=960"   /></a></h3>
<h3></h3>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<h3></h3>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/196/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/196/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=196&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2012/11/19/restoring-a-sql-server-2005-full-text-catalog-to-sql-server-2012/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2012/10/image0011.png" medium="image">
			<media:title type="html">image0011</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2012/10/image002.png" medium="image">
			<media:title type="html">image002</media:title>
		</media:content>
	</item>
		<item>
		<title>SSMS 2012 &#124;&#124; Connect to Server (Additional Connection Parameters Page)</title>
		<link>http://mssqlfun.com/2012/11/16/ssms-2012-connect-to-server-additional-connection-parameters-page/</link>
		<comments>http://mssqlfun.com/2012/11/16/ssms-2012-connect-to-server-additional-connection-parameters-page/#comments</comments>
		<pubDate>Fri, 16 Nov 2012 12:10:44 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=238</guid>
		<description><![CDATA[The Connect to SQL Server Management Studio presents a new Additional Connection Parameters Page. Use the Additional Connection Parameters page to add more connection parameters to the connection string. Steps to get Additional Connection Parameters page In Management Studio, on the Query menu, point to Connection, and then click Connect. In the Connect to dialog &#8230; <a href="http://mssqlfun.com/2012/11/16/ssms-2012-connect-to-server-additional-connection-parameters-page/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=238&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>The Connect to SQL Server Management Studio presents a new Additional Connection Parameters Page. Use the Additional Connection Parameters page to add more connection parameters to the connection string.</p>
<p><strong>Steps to get Additional Connection Parameters page</strong></p>
<ol start="1">
<li>In Management Studio, on the Query menu, point to Connection, and then click Connect.</li>
<li>In the Connect to dialog box, click Options, and then click the Additional Connection Parameters tab.</li>
</ol>
<p><strong>What is the use of Additional Connection Parameters page ?</strong></p>
<p>· Additional connection parameters can be any ODBC connection parameter.</p>
<p>· Additional connection parameters should be added in the format ;parameter1=value1;parameter2=value2.</p>
<p>· Parameters added using the Additional Connection Parameters page are added to the parameters selected using the Connect to dialog box options.</p>
<p>· The last instance of each parameter provided overrides any previous instances of the parameter. Parameters added using the Additional Connection Parameters page follow and replace the parameters provided in the Login or Connection Properties tabs. For example, if the Login tab provides SERVER1 as the Server name, and the Additional Connection Parameters page contains ;SERVER=SERVER2, the connection will be made to SERVER2.</p>
<p>· Parameters added using the Additional Connection Parameters page are always passed as plain text.</p>
<p>· Do not include login credentials and passwords in the Additional Connection Parameters page. They will not be encrypted when they are passed across the network. Use the Login tab instead.</p>
<p>· You can use it for both Database engine Services or Analysis Services.</p>
<p><strong>Example :-</strong></p>
<p>1) We have not mention user password in login page</p>
<p><a href="http://mssqlfun.files.wordpress.com/2012/11/image0021.png"><img class="alignnone size-full wp-image-239" title="image0021" alt="" src="http://mssqlfun.files.wordpress.com/2012/11/image0021.png?w=960"   /></a></p>
<p>2) We have enter, Server Name, database name, User Name &amp; password like parameter in Additional Connection Parameters Page &amp; we connect successfully on MSDB database with test user.</p>
<p><a href="http://mssqlfun.files.wordpress.com/2012/11/image003.png"><img class="alignnone size-full wp-image-240" title="image003" alt="" src="http://mssqlfun.files.wordpress.com/2012/11/image003.png?w=960"   /></a></p>
<p><a href="http://msdn.microsoft.com/en-us/library/cc645898.aspx">Helpful Link from MSDN</a></p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>)</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/238/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/238/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=238&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2012/11/16/ssms-2012-connect-to-server-additional-connection-parameters-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2012/11/image0021.png" medium="image">
			<media:title type="html">image0021</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2012/11/image003.png" medium="image">
			<media:title type="html">image003</media:title>
		</media:content>
	</item>
		<item>
		<title>Become Microsoft Community Contributor &#8230;..</title>
		<link>http://mssqlfun.com/2012/11/15/become-microsoft-community-contributor/</link>
		<comments>http://mssqlfun.com/2012/11/15/become-microsoft-community-contributor/#comments</comments>
		<pubDate>Thu, 15 Nov 2012 08:33:25 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=236</guid>
		<description><![CDATA[Become Microsoft Community Contributor. I am very happy after receiving this affiliation from Microsoft last month. My MCC badge is visible now on MSDN. Profile Page : http://social.msdn.microsoft.com/profile/rohitgarg/ &#160; &#160; &#160; &#160; Reference : Rohit Garg (http://mssqlfun.com/)<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=236&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Become Microsoft Community Contributor.</p>
<p>I am very happy after receiving this affiliation from Microsoft last month.</p>
<p>My MCC badge is visible now on MSDN.</p>
<p>Profile Page : <a href="http://social.msdn.microsoft.com/profile/rohitgarg/"> http://social.msdn.microsoft.com/profile/rohitgarg/</a></p>
<p><a href="http://mssqlfun.files.wordpress.com/2012/11/image0011.png"><img class="alignnone size-full wp-image-237" title="image0011" alt="" src="http://mssqlfun.files.wordpress.com/2012/11/image0011.png?w=960"   /></a></p>
<p><a href="http://mssqlfun.files.wordpress.com/2013/01/mcc2.jpg"><img class="size-full wp-image-311 alignleft" alt="MCC" src="http://mssqlfun.files.wordpress.com/2013/01/mcc2.jpg?w=960"   /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Reference : <strong>Rohit Garg (<a href="http://mssqlfun.com/">http://mssqlfun.com/</a>) </strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/236/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/236/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=236&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2012/11/15/become-microsoft-community-contributor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2012/11/image0011.png" medium="image">
			<media:title type="html">image0011</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2013/01/mcc2.jpg" medium="image">
			<media:title type="html">MCC</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server &#124;&#124; Compress &amp; UnComprees Backups in one Media\File</title>
		<link>http://mssqlfun.com/2012/11/14/sql-server-compress-unccomprees-backups-in-one-mediafile/</link>
		<comments>http://mssqlfun.com/2012/11/14/sql-server-compress-unccomprees-backups-in-one-mediafile/#comments</comments>
		<pubDate>Wed, 14 Nov 2012 09:10:55 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=202</guid>
		<description><![CDATA[Today, We try to check of SQL server when trying to take Compress &#38; UnCcomprees Backups in one Media\File. Query No. 1 BACKUP DATABASE DB2 TO DISK = &#8216;D:\DB2_FULL.BAK&#8217; WITH COMPRESSION GO BACKUP DATABASE DB2 TO DISK = &#8216;D:\DB2_FULL.BAK&#8217; WITH NOINIT Result : Run Successfully Explanation : Backup file is formatted to take compressed backup. &#8230; <a href="http://mssqlfun.com/2012/11/14/sql-server-compress-unccomprees-backups-in-one-mediafile/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=202&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Today, We try to check of SQL server when trying to take Compress &amp; UnCcomprees Backups in one Media\File.</p>
<p><strong>Query No. 1</strong></p>
<p>BACKUP DATABASE DB2</p>
<p>TO DISK = &#8216;D:\DB2_FULL.BAK&#8217; WITH COMPRESSION</p>
<p>GO</p>
<p>BACKUP DATABASE DB2</p>
<p>TO DISK = &#8216;D:\DB2_FULL.BAK&#8217; WITH NOINIT</p>
<p><strong>Result :</strong> Run Successfully</p>
<p><strong>Explanation :</strong> Backup file is formatted to take compressed backup. So without mention COMPRESSION keyword. SQL server process this backup request as COMPRESSED backup.</p>
<p><strong>Query No. 2</strong></p>
<p>BACKUP DATABASE DB2</p>
<p>TO DISK = &#8216;D:\DB2_FULL2.BAK&#8217; WITH COMPRESSION</p>
<p>GO</p>
<p>BACKUP DATABASE DB2</p>
<p>TO DISK = &#8216;D:\DB2_FULL2.BAK&#8217; WITH INIT</p>
<p><strong>Result :</strong> Run Successfully</p>
<p><strong>Explanation :</strong> Backup set is overwritten but file header is intact. Due to which without mention COMPRESSION keyword, SQL server process this backup request as COMPRESSED backup.</p>
<p><strong>Query No. 3</strong></p>
<p>BACKUP DATABASE DB2</p>
<p>TO DISK = &#8216;D:\DB2_FULL3.BAK&#8217;</p>
<p>GO</p>
<p>BACKUP DATABASE DB2</p>
<p>TO DISK = &#8216;D:\DB2_FULL3.BAK&#8217; WITH INIT,COMPRESSION</p>
<p><strong>Result :</strong> Failed</p>
<p>Msg 3098, Level 16, State 2, Line 1</p>
<p>The backup cannot be performed because &#8216;COMPRESSION&#8217; was requested after the media was formatted with an incompatible structure. To append to this media set, either omit &#8216;COMPRESSION&#8217; or specify &#8216;NO_COMPRESSION&#8217;. Alternatively, you can create a new media set by using WITH FORMAT in your BACKUP statement. If you use WITH FORMAT on an existing media set, all its backup sets will be overwritten.</p>
<p>Msg 3013, Level 16, State 1, Line 1</p>
<p>BACKUP DATABASE is terminating abnormally.</p>
<p><strong>Explanation :</strong> Backup file is formatted to take Uncompressed backup but backup is mention to take in compressed form.</p>
<p><strong>Query No. 4</strong></p>
<p>BACKUP DATABASE DB2</p>
<p>TO DISK = &#8216;D:\DB2_FULL4.BAK&#8217;</p>
<p>GO</p>
<p>BACKUP DATABASE DB2</p>
<p>TO DISK = &#8216;D:\DB2_FULL4.BAK&#8217; WITH NOINIT,COMPRESSION</p>
<p><strong>Result :</strong> Failed</p>
<p>Msg 3098, Level 16, State 2, Line 1</p>
<p>The backup cannot be performed because &#8216;COMPRESSION&#8217; was requested after the media was formatted with an incompatible structure. To append to this media set, either omit &#8216;COMPRESSION&#8217; or specify &#8216;NO_COMPRESSION&#8217;. Alternatively, you can create a new media set by using WITH FORMAT in your BACKUP statement. If you use WITH FORMAT on an existing media set, all its backup sets will be overwritten.</p>
<p>Msg 3013, Level 16, State 1, Line 1</p>
<p>BACKUP DATABASE is terminating abnormally.</p>
<p><strong>Explanation :</strong> Backup set is overwritten but file header is intact. Due to COMPRESSION keyword, SQL server tried to process this backup request as COMPRESSED backup in Uncompressed file format &amp; got failed.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/202/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/202/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=202&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2012/11/14/sql-server-compress-unccomprees-backups-in-one-mediafile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>Happy Diwali&#8230;&#8230;&#8230;&#8230;.</title>
		<link>http://mssqlfun.com/2012/11/13/happy-diwali/</link>
		<comments>http://mssqlfun.com/2012/11/13/happy-diwali/#comments</comments>
		<pubDate>Tue, 13 Nov 2012 14:44:41 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=229</guid>
		<description><![CDATA[Wishing You a Very Happy Diwali……………. KAHI TIMTIMAHAT HAIN DIYO KI, KAHI SHOR HAAN ATHISBAZI KA CHAMAK HAAN DIL MAIN, UMEEDO KI KHANAK HAAN MITHAIYO KA ANAND HAAN, PATHAKO KI JHADI HAAN YE JEET HAAN SACH KI, YE JASAN HAAN DIWALI KA<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=229&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Wishing You a Very Happy Diwali…………….</p>
<p>KAHI TIMTIMAHAT HAIN DIYO KI, KAHI SHOR HAAN ATHISBAZI KA</p>
<p>CHAMAK HAAN DIL MAIN, UMEEDO KI KHANAK HAAN</p>
<p>MITHAIYO KA ANAND HAAN, PATHAKO KI JHADI HAAN</p>
<p>YE JEET HAAN SACH KI, YE JASAN HAAN DIWALI KA</p>
<p><a href="http://mssqlfun.files.wordpress.com/2012/11/image002.gif"><img class="alignnone size-full wp-image-230" title="image002" alt="" src="http://mssqlfun.files.wordpress.com/2012/11/image002.gif?w=960"   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/229/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/229/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=229&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2012/11/13/happy-diwali/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2012/11/image002.gif" medium="image">
			<media:title type="html">image002</media:title>
		</media:content>
	</item>
		<item>
		<title>Why SQL Server Named Instance connect without specifying instance name ?</title>
		<link>http://mssqlfun.com/2012/11/12/why-sql-server-named-instance-connect-without-specifying-instance-name/</link>
		<comments>http://mssqlfun.com/2012/11/12/why-sql-server-named-instance-connect-without-specifying-instance-name/#comments</comments>
		<pubDate>Mon, 12 Nov 2012 10:12:32 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/2012/11/12/why-sql-server-named-instance-connect-without-specifying-instance-name/</guid>
		<description><![CDATA[Issue : Today Evening, I was just about to leave the office and at same time I got a call from one of my friend. He is not running under any production issue but bit confused with SQL server behavior while connecting with port no. in case of named instance. He is having one named &#8230; <a href="http://mssqlfun.com/2012/11/12/why-sql-server-named-instance-connect-without-specifying-instance-name/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=228&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong>Issue :</strong></p>
<p>Today Evening, I was just about to leave the office and at same time I got a call from one of my friend. He is not running under any production issue but bit confused with SQL server behavior while connecting with port no. in case of named instance.</p>
<p>He is having one named SQL Server 2005 instance running on non-default port 55537.</p>
<p>He tried to connect by following Server Names :-</p>
<p>· MachineName\InstanceName – Working fine &amp; he is having no issue</p>
<p>· MachineName\InstanceName,PortNo &#8211; Working fine &amp; he is having no issue</p>
<p>· MachineName,PortNo – Now this is the issue.</p>
<p><strong>He is running with question :-</strong></p>
<p>1. How SQL server is going to connect without instance name?</p>
<p>2. Is it connecting some different instance? But his machine is having only one named instance.</p>
<p><strong>Solution :</strong></p>
<p>The correct syntax for connecting to SQL Server is &#8220;Servername/InstanceName&#8221; or &#8220;ServerName,port&#8221;. When you specify both an instance name and the port, the connection is made to the port number.</p>
<p>So when you mention Port with machine name, SQL server connect to the SQL instance running on mentioned port without being knowing instance name.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/228/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/228/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=228&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2012/11/12/why-sql-server-named-instance-connect-without-specifying-instance-name/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>
	</item>
		<item>
		<title>How to open and view a deadlock graph .xdl file with SSMS ?</title>
		<link>http://mssqlfun.com/2012/11/09/how-to-open-and-view-a-deadlock-graph-xdl-file-with-ssms/</link>
		<comments>http://mssqlfun.com/2012/11/09/how-to-open-and-view-a-deadlock-graph-xdl-file-with-ssms/#comments</comments>
		<pubDate>Fri, 09 Nov 2012 09:38:16 +0000</pubDate>
		<dc:creator>rohitmssqlfun</dc:creator>
				<category><![CDATA[CodeProject]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://mssqlfun.com/?p=226</guid>
		<description><![CDATA[How to open and view a deadlock .xdl file with SSMS ? Solution 1 : On the File menu in SQL Server Management Studio, point to Open, and then click File. In the Open File dialog box, select your .xdl file &#38; click open. Solution 2 : Go to the directory, you have saved your &#8230; <a href="http://mssqlfun.com/2012/11/09/how-to-open-and-view-a-deadlock-graph-xdl-file-with-ssms/">Continue reading <span class="meta-nav">&#8594;</span></a><img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=226&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p><strong><a href="http://mssqlfun.com/">How to open and view a deadlock .xdl file with SSMS ?</a></strong></p>
<p><strong>Solution 1 :</strong></p>
<ol start="1">
<li>On the File menu in SQL Server Management Studio, point to Open, and then click File.</li>
<li>In the Open File dialog box, select your .xdl file &amp; click open.</li>
</ol>
<p><strong>Solution 2 :</strong></p>
<ol start="1">
<li>Go to the directory, you have saved your deadlock graph .xdl file.</li>
<li>Right click on .xdl file &gt; Go to Open With Option &gt; Select SQL Server Management Studio</li>
</ol>
<p><a href="http://mssqlfun.files.wordpress.com/2012/11/image002.png"><img class="alignnone size-full wp-image-227" title="image002" alt="" src="http://mssqlfun.files.wordpress.com/2012/11/image002.png?w=960"   /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/mssqlfun.wordpress.com/226/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/mssqlfun.wordpress.com/226/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=mssqlfun.com&#038;blog=37099261&#038;post=226&#038;subd=mssqlfun&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://mssqlfun.com/2012/11/09/how-to-open-and-view-a-deadlock-graph-xdl-file-with-ssms/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/9b3a6f3a29a5ae1df36582a5f1c23d59?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">rohitmssqlfun</media:title>
		</media:content>

		<media:content url="http://mssqlfun.files.wordpress.com/2012/11/image002.png" medium="image">
			<media:title type="html">image002</media:title>
		</media:content>
	</item>
	</channel>
</rss>
