<?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>Sethu&#039;s blog</title>
	<atom:link href="http://sethusrinivasan.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://sethusrinivasan.com</link>
	<description>Dev notes</description>
	<lastBuildDate>Tue, 19 Mar 2013 07:48:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='sethusrinivasan.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sethu&#039;s blog</title>
		<link>http://sethusrinivasan.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://sethusrinivasan.com/osd.xml" title="Sethu&#039;s blog" />
	<atom:link rel='hub' href='http://sethusrinivasan.com/?pushpress=hub'/>
		<item>
		<title>Gather last 10 Error &amp; critical events  from all Windows  Event Logs</title>
		<link>http://sethusrinivasan.com/2013/02/21/gather-last-10-error-critical-events-from-all-windows-event-logs/</link>
		<comments>http://sethusrinivasan.com/2013/02/21/gather-last-10-error-critical-events-from-all-windows-event-logs/#comments</comments>
		<pubDate>Thu, 21 Feb 2013 22:50:47 +0000</pubDate>
		<dc:creator>sethusrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sethusrinivasan.com/?p=330</guid>
		<description><![CDATA[Windows PowerShell 3.0 cmdlet: get-winevent -FilterXPath &#8220;*[System[(Level=1 or Level=2)]]&#8221; -MaxEvents 10<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=330&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Windows PowerShell 3.0 cmdlet:<br />
get-winevent  -FilterXPath &#8220;*[System[(Level=1  or Level=2)]]&#8221; -MaxEvents 10</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sethusrinivasan.wordpress.com/330/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sethusrinivasan.wordpress.com/330/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=330&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sethusrinivasan.com/2013/02/21/gather-last-10-error-critical-events-from-all-windows-event-logs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/f9245a6d4f53be61b2be767f63e064b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sethusrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>Complete SSMS is available for free in SQL 2012 SP1</title>
		<link>http://sethusrinivasan.com/2013/01/25/complete-ssms-is-available-for-free-in-sql-2012-sp1/</link>
		<comments>http://sethusrinivasan.com/2013/01/25/complete-ssms-is-available-for-free-in-sql-2012-sp1/#comments</comments>
		<pubDate>Fri, 25 Jan 2013 18:57:10 +0000</pubDate>
		<dc:creator>sethusrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sethusrinivasan.com/?p=323</guid>
		<description><![CDATA[In SQL 2012 SP1, Full SSMS is available as a free download. You can download SSMS (SQL 2012 SP1) from http://www.microsoft.com/en-us/download/details.aspx?id=29062 &#160; &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=323&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>In SQL 2012 SP1, Full SSMS is available as a free download.</p>
<p>You can download SSMS (SQL 2012 SP1) from <a href="http://www.microsoft.com/en-us/download/details.aspx?id=29062" rel="nofollow">http://www.microsoft.com/en-us/download/details.aspx?id=29062</a></p>
<p>&nbsp;</p>
<p><a href="http://sethusrinivasan.files.wordpress.com/2013/01/ssms_complete.png"><img class="alignnone size-full wp-image-324" alt="SSMS_Complete" src="http://sethusrinivasan.files.wordpress.com/2013/01/ssms_complete.png?w=697&#038;h=310" width="697" height="310" /></a></p>
<p>&nbsp;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sethusrinivasan.wordpress.com/323/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sethusrinivasan.wordpress.com/323/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=323&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sethusrinivasan.com/2013/01/25/complete-ssms-is-available-for-free-in-sql-2012-sp1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/f9245a6d4f53be61b2be767f63e064b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sethusrinivasan</media:title>
		</media:content>

		<media:content url="http://sethusrinivasan.files.wordpress.com/2013/01/ssms_complete.png" medium="image">
			<media:title type="html">SSMS_Complete</media:title>
		</media:content>
	</item>
		<item>
		<title>Backup all databases using Backup-SqlDatabase cmdlet</title>
		<link>http://sethusrinivasan.com/2013/01/21/backup-all-databases-using-backup-sqldatabase-cmdlet/</link>
		<comments>http://sethusrinivasan.com/2013/01/21/backup-all-databases-using-backup-sqldatabase-cmdlet/#comments</comments>
		<pubDate>Mon, 21 Jan 2013 23:04:08 +0000</pubDate>
		<dc:creator>sethusrinivasan</dc:creator>
				<category><![CDATA[Backup]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[SQL Power shell]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://sethusrinivasan.com/?p=314</guid>
		<description><![CDATA[Launch SSMS Right click on databases node, Select Menu item &#8220;Start PowerShell&#8221; Type in following command to backup all databases to Default backup folder dir &#124;  Backup-SqlDatabase &#160; &#160; Databases are backed up to Default backup folder &#160;<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=314&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>Launch SSMS</p>
<p>Right click on databases node,</p>
<p>Select Menu item &#8220;Start PowerShell&#8221;</p>
<p>Type in following command to backup all databases to Default backup folder</p>
<p>dir |  Backup-SqlDatabase</p>
<p><a href="http://sethusrinivasan.files.wordpress.com/2013/01/backupall_db1.png"><img class="alignnone size-full wp-image-326" alt="BackupAll_db1" src="http://sethusrinivasan.files.wordpress.com/2013/01/backupall_db1.png?w=697&#038;h=343" width="697" height="343" /></a></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>Databases are backed up to Default backup folder</p>
<p>&nbsp;</p>
<p><a href="http://sethusrinivasan.files.wordpress.com/2013/01/backupall_db2.png"><img class="alignnone size-full wp-image-327" alt="BackupAll_db2" src="http://sethusrinivasan.files.wordpress.com/2013/01/backupall_db2.png?w=980&#038;h=398" width="980" height="398" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sethusrinivasan.wordpress.com/314/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sethusrinivasan.wordpress.com/314/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=314&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sethusrinivasan.com/2013/01/21/backup-all-databases-using-backup-sqldatabase-cmdlet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/f9245a6d4f53be61b2be767f63e064b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sethusrinivasan</media:title>
		</media:content>

		<media:content url="http://sethusrinivasan.files.wordpress.com/2013/01/backupall_db1.png" medium="image">
			<media:title type="html">BackupAll_db1</media:title>
		</media:content>

		<media:content url="http://sethusrinivasan.files.wordpress.com/2013/01/backupall_db2.png" medium="image">
			<media:title type="html">BackupAll_db2</media:title>
		</media:content>
	</item>
		<item>
		<title>DMV &#8211; Windows Operating System version information</title>
		<link>http://sethusrinivasan.com/2013/01/21/dmv-windows-operating-system-version-information/</link>
		<comments>http://sethusrinivasan.com/2013/01/21/dmv-windows-operating-system-version-information/#comments</comments>
		<pubDate>Mon, 21 Jan 2013 22:58:31 +0000</pubDate>
		<dc:creator>sethusrinivasan</dc:creator>
				<category><![CDATA[DMV]]></category>
		<category><![CDATA[SQL Server]]></category>

		<guid isPermaLink="false">http://sethusrinivasan.com/?p=312</guid>
		<description><![CDATA[You can use the DMV on SQL 2008 R2 and above to query Windows OS information SELECT * FROM sys.dm_os_windows_info References: MSDN: http://msdn.microsoft.com/en-us/library/hh204565.aspx Related Forum thread: http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/9753f897-82e3-4602-b7c9-650c7239e83d<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=312&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>You can use the DMV on SQL 2008 R2 and above to query Windows OS information</p>
<p>SELECT * FROM sys.dm_os_windows_info</p>
<p>References:</p>
<p>MSDN: <a href="http://msdn.microsoft.com/en-us/library/hh204565.aspx">http://msdn.microsoft.com/en-us/library/hh204565.aspx</a></p>
<p>Related Forum thread: <a href="http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/9753f897-82e3-4602-b7c9-650c7239e83d">http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/9753f897-82e3-4602-b7c9-650c7239e83d</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sethusrinivasan.wordpress.com/312/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sethusrinivasan.wordpress.com/312/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=312&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sethusrinivasan.com/2013/01/21/dmv-windows-operating-system-version-information/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/f9245a6d4f53be61b2be767f63e064b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sethusrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>Set autoclose property for all database</title>
		<link>http://sethusrinivasan.com/2013/01/18/set-autoclose-property-for-all-database/</link>
		<comments>http://sethusrinivasan.com/2013/01/18/set-autoclose-property-for-all-database/#comments</comments>
		<pubDate>Fri, 18 Jan 2013 23:19:10 +0000</pubDate>
		<dc:creator>sethusrinivasan</dc:creator>
				<category><![CDATA[DB Management]]></category>
		<category><![CDATA[SQL Power shell]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[SSMS]]></category>

		<guid isPermaLink="false">http://sethusrinivasan.com/?p=298</guid>
		<description><![CDATA[in SSMS , Right click on database node in Object Explorer, Select menu item &#8220;Start PowerShell&#8221; Type in following in power shell window to set Auto Close on all databases dir &#124; foreach {$_.AutoClose = $true; $_.Alter()} If you would prefer to set on specific database that starts with name &#8220;DB&#8221; dir &#124; where-object {$_.Name.StartsWith("DB")} [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=298&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>in SSMS , Right click on database node in Object Explorer, Select menu item &#8220;Start PowerShell&#8221;</p>
<p>Type in following in power shell window to set Auto Close on all databases</p>
<pre>dir | foreach {$_.AutoClose = $true; $_.Alter()}</pre>
<p>If you would prefer to set on specific database that starts with name &#8220;DB&#8221;</p>
<pre>dir | where-object {$_.Name.StartsWith("DB")} | foreach {$_.AutoClose = $true; $_.Alter()}</pre>
<p>Related forum thread: <a href="http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/c2780156-7a6f-4b29-a2f6-f4bfa682379c/#0c0c375b-e584-4c3f-9d40-482ca1a15999">http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/c2780156-7a6f-4b29-a2f6-f4bfa682379c/#0c0c375b-e584-4c3f-9d40-482ca1a15999</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sethusrinivasan.wordpress.com/298/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sethusrinivasan.wordpress.com/298/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=298&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sethusrinivasan.com/2013/01/18/set-autoclose-property-for-all-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/f9245a6d4f53be61b2be767f63e064b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sethusrinivasan</media:title>
		</media:content>
	</item>
		<item>
		<title>Multi-server results options to merge results</title>
		<link>http://sethusrinivasan.com/2013/01/07/multi-server-results-options-to-merge-results/</link>
		<comments>http://sethusrinivasan.com/2013/01/07/multi-server-results-options-to-merge-results/#comments</comments>
		<pubDate>Mon, 07 Jan 2013 22:33:12 +0000</pubDate>
		<dc:creator>sethusrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sethusrinivasan.com/?p=295</guid>
		<description><![CDATA[You could set the Multi Server results Options Merge Results = &#8220;False&#8221; and rerun the same query. Now you will see multiple result sets. This could help you isolate the issue why the result schema returned by specific server is not the same as other result sets. ( Related forum thread:  http://social.msdn.microsoft.com/Forums/en-US/sqlkjappmsmgmt/thread/c4cda4bc-7b4d-4367-99a9-3268d8196feb/ ) in SSMS -&#62; [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=295&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>You could set the Multi Server results Options Merge Results = &#8220;False&#8221; and rerun the same query. Now you will see multiple result sets. This could help you isolate the issue why the result schema returned by specific server is not the same as other result sets. ( Related forum thread:  <a href="http://social.msdn.microsoft.com/Forums/en-US/sqlkjappmsmgmt/thread/c4cda4bc-7b4d-4367-99a9-3268d8196feb/">http://social.msdn.microsoft.com/Forums/en-US/sqlkjappmsmgmt/thread/c4cda4bc-7b4d-4367-99a9-3268d8196feb/</a> )</p>
<p>in SSMS -&gt; Tools -&gt; Options</p>
<p>Query results</p>
<p>-&gt; SQL Server</p>
<p>&#8212;&#8212;&#8212;&gt; Multi Server Results<br />
<strong>Screenshot:</strong></p>
<p><a href="http://sethusrinivasan.files.wordpress.com/2013/01/merferesults_multiserverquery.png"><img class="alignnone size-full wp-image-296" alt="MerfeResults_MultiServerQuery" src="http://sethusrinivasan.files.wordpress.com/2013/01/merferesults_multiserverquery.png?w=761&#038;h=452" width="761" height="452" /></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sethusrinivasan.wordpress.com/295/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sethusrinivasan.wordpress.com/295/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=295&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sethusrinivasan.com/2013/01/07/multi-server-results-options-to-merge-results/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/f9245a6d4f53be61b2be767f63e064b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sethusrinivasan</media:title>
		</media:content>

		<media:content url="http://sethusrinivasan.files.wordpress.com/2013/01/merferesults_multiserverquery.png" medium="image">
			<media:title type="html">MerfeResults_MultiServerQuery</media:title>
		</media:content>
	</item>
		<item>
		<title>Capturing session level options settings on all sessions in SQL 2012 using XEvents</title>
		<link>http://sethusrinivasan.com/2013/01/05/capturing-session-level-options-set-all-sessions-in-sql-2012-using-xevents/</link>
		<comments>http://sethusrinivasan.com/2013/01/05/capturing-session-level-options-set-all-sessions-in-sql-2012-using-xevents/#comments</comments>
		<pubDate>Sat, 05 Jan 2013 21:52:40 +0000</pubDate>
		<dc:creator>sethusrinivasan</dc:creator>
				<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[XEvents]]></category>

		<guid isPermaLink="false">http://sethusrinivasan.com/?p=287</guid>
		<description><![CDATA[You could use XEvents to capture options set at all existing sessions &#38; any future new sessions. Here is sample session definition. (I have tested it on SQL 2012 SP1). Please replace the file path in the following script to a valid file path on your machine where SQL Server service account has read, write [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=287&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>You could use XEvents to capture options set at all existing sessions &amp; any future new sessions. Here is sample session definition. (I have tested it on SQL 2012 SP1). Please replace the file path in the following script to a valid file path on your machine where SQL Server service account has read, write privileges to create and write to XEvent file.</p>
<p>(Related forum thread: <a href="http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/feede34e-401c-44a6-8dcd-6a096ec84c38">http://social.msdn.microsoft.com/Forums/en-US/sqltools/thread/feede34e-401c-44a6-8dcd-6a096ec84c38</a> )</p>
<p><a href="http://sethusrinivasan.files.wordpress.com/2013/01/xeventsession_setoptions.png"><img class="alignnone size-full wp-image-288" alt="XEventSession_SetOptions" src="http://sethusrinivasan.files.wordpress.com/2013/01/xeventsession_setoptions.png?w=969&#038;h=265" width="969" height="265" /></a></p>
<p>T-SQL</p>
<p>&#8212;&#8212;&#8212;</p>
<pre>CREATE EVENT SESSION [set_options] ON SERVER 
ADD EVENT sqlserver.existing_connection(SET collect_database_name=(1),collect_options_text=(1)) 
ADD TARGET package0.event_file(SET filename=N'C:\Program Files\Microsoft SQL Server\MSSQL11.MSSQLSERVER\MSSQL\Log\set_options.xel')
WITH (MAX_MEMORY=4096 KB,
EVENT_RETENTION_MODE=ALLOW_SINGLE_EVENT_LOSS,
MAX_DISPATCH_LATENCY=30 SECONDS,
MAX_EVENT_SIZE=0 KB,
MEMORY_PARTITION_MODE=NONE,
TRACK_CAUSALITY=OFF,
STARTUP_STATE=OFF)
GO
ALTER EVENT SESSION [set_options] ON SERVER STATE=START</pre>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sethusrinivasan.wordpress.com/287/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sethusrinivasan.wordpress.com/287/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=287&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sethusrinivasan.com/2013/01/05/capturing-session-level-options-set-all-sessions-in-sql-2012-using-xevents/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/f9245a6d4f53be61b2be767f63e064b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sethusrinivasan</media:title>
		</media:content>

		<media:content url="http://sethusrinivasan.files.wordpress.com/2013/01/xeventsession_setoptions.png" medium="image">
			<media:title type="html">XEventSession_SetOptions</media:title>
		</media:content>
	</item>
		<item>
		<title>Scripting database using Smo.Scripter</title>
		<link>http://sethusrinivasan.com/2013/01/03/scripting-database-using-smo-scripter/</link>
		<comments>http://sethusrinivasan.com/2013/01/03/scripting-database-using-smo-scripter/#comments</comments>
		<pubDate>Fri, 04 Jan 2013 01:51:08 +0000</pubDate>
		<dc:creator>sethusrinivasan</dc:creator>
				<category><![CDATA[Scripting]]></category>
		<category><![CDATA[SQL Power shell]]></category>
		<category><![CDATA[SQL Server]]></category>
		<category><![CDATA[PowerShell]]></category>

		<guid isPermaLink="false">http://sethusrinivasan.com/?p=263</guid>
		<description><![CDATA[You can automate script generation using SMO and power shell using the following power shell script. Script generated would be similar to the script generated using &#8220;Generate Script Wizard&#8221; in ssms You can download script from here This posting is provided &#8220;AS IS&#8221; with no warranties, and confers no rights. Use of included script samples [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=263&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>You can automate script generation using SMO and power shell using the following power shell script. Script generated would be similar to the script generated using &#8220;Generate Script Wizard&#8221; in ssms</p>
<p>You can download script from <a title="scriptdb.ps1" href="https://github.com/sethusrinivasan/SQLPowerShell/blob/75f9eef2624513b13942fbdf43f01f76f068b9d8/ObjectScripting/scriptdb.ps1">here</a></p>
<p><a href="http://sethusrinivasan.com/2013/01/03/scripting-database-using-smo-scripter/scriptdb_ps1/" rel="attachment wp-att-268"><img class="alignnone size-full wp-image-268" alt="scriptdb_ps1" src="http://sethusrinivasan.files.wordpress.com/2013/01/scriptdb_ps1.png?w=1024&#038;h=603" width="1024" height="603" /></a></p>
<p><em>This posting is provided &#8220;AS IS&#8221; with no warranties, and confers no rights.<br />
Use of included script samples are subject to the terms specified at </em><a href="http://www.microsoft.com/info/cpyright.htm"><em>http://www.microsoft.com/info/cpyright.htm</em></a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sethusrinivasan.wordpress.com/263/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sethusrinivasan.wordpress.com/263/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=263&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sethusrinivasan.com/2013/01/03/scripting-database-using-smo-scripter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/f9245a6d4f53be61b2be767f63e064b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sethusrinivasan</media:title>
		</media:content>

		<media:content url="http://sethusrinivasan.files.wordpress.com/2013/01/scriptdb_ps1.png" medium="image">
			<media:title type="html">scriptdb_ps1</media:title>
		</media:content>
	</item>
		<item>
		<title>How to specify DB name in CMS Query</title>
		<link>http://sethusrinivasan.com/2013/01/02/how-to-specify-db-name-in-cms-query/</link>
		<comments>http://sethusrinivasan.com/2013/01/02/how-to-specify-db-name-in-cms-query/#comments</comments>
		<pubDate>Wed, 02 Jan 2013 20:19:06 +0000</pubDate>
		<dc:creator>sethusrinivasan</dc:creator>
				<category><![CDATA[SSMS]]></category>

		<guid isPermaLink="false">http://sethusrinivasan.com/?p=258</guid>
		<description><![CDATA[You can set the database name for the registered server in the &#8220;Connection Properties&#8221; tab. Then open a &#8220;New Query&#8221; on the server group and run your query &#160; Related forum thread: http://social.msdn.microsoft.com/Forums/en-US/sqlkjappmsmgmt/thread/69576d3a-20f5-4641-9e55-0e805429839a<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=258&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></description>
				<content:encoded><![CDATA[<p>You can set the database name for the registered server in the &#8220;Connection Properties&#8221; tab. Then open a &#8220;New Query&#8221; on the server group and run your query</p>
<p><a href="http://sethusrinivasan.com/2013/01/02/how-to-specify-db-name-in-cms-query/attachment/207076/" rel="attachment wp-att-259"><img class="alignnone size-full wp-image-259" alt="207076" src="http://sethusrinivasan.files.wordpress.com/2013/01/207076.png?w=408&#038;h=514" width="408" height="514" /></a></p>
<p>&nbsp;</p>
<p>Related forum thread: <a href="http://social.msdn.microsoft.com/Forums/en-US/sqlkjappmsmgmt/thread/69576d3a-20f5-4641-9e55-0e805429839a">http://social.msdn.microsoft.com/Forums/en-US/sqlkjappmsmgmt/thread/69576d3a-20f5-4641-9e55-0e805429839a</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/sethusrinivasan.wordpress.com/258/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sethusrinivasan.wordpress.com/258/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=258&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sethusrinivasan.com/2013/01/02/how-to-specify-db-name-in-cms-query/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/f9245a6d4f53be61b2be767f63e064b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sethusrinivasan</media:title>
		</media:content>

		<media:content url="http://sethusrinivasan.files.wordpress.com/2013/01/207076.png" medium="image">
			<media:title type="html">207076</media:title>
		</media:content>
	</item>
		<item>
		<title>2012 in review</title>
		<link>http://sethusrinivasan.com/2012/12/30/2012-in-review/</link>
		<comments>http://sethusrinivasan.com/2012/12/30/2012-in-review/#comments</comments>
		<pubDate>Mon, 31 Dec 2012 01:21:17 +0000</pubDate>
		<dc:creator>sethusrinivasan</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://sethusrinivasan.com/?p=256</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 9,500 views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 16 years to get [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=256&#038;subd=sethusrinivasan&#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://sethusrinivasan.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>9,500</strong> views in 2012. If every person who reached the top of Mt. Everest viewed this blog, it would have taken 16 years to get that many views.</p></blockquote>
<p><a href="http://sethusrinivasan.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/sethusrinivasan.wordpress.com/256/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/sethusrinivasan.wordpress.com/256/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=sethusrinivasan.com&#038;blog=14245055&#038;post=256&#038;subd=sethusrinivasan&#038;ref=&#038;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://sethusrinivasan.com/2012/12/30/2012-in-review/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<georss:point>0.000000 0.000000</georss:point>
		<geo:lat>0.000000</geo:lat>
		<geo:long>0.000000</geo:long>
		<media:content url="http://0.gravatar.com/avatar/f9245a6d4f53be61b2be767f63e064b2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">sethusrinivasan</media:title>
		</media:content>

		<media:content url="http://www.wordpress.com/wp-content/mu-plugins/annual-reports/img/2012-emailteaser.png" medium="image" />
	</item>
	</channel>
</rss>
