<?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>Sqlserver Blog</title>
	<atom:link href="http://hassanszone.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://hassanszone.wordpress.com</link>
	<description>This Blog is purely ment for Sqlserver 2000 and 2005 Database administration</description>
	<lastBuildDate>Sat, 15 Oct 2011 18:04:47 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='hassanszone.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Sqlserver Blog</title>
		<link>http://hassanszone.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://hassanszone.wordpress.com/osd.xml" title="Sqlserver Blog" />
	<atom:link rel='hub' href='http://hassanszone.wordpress.com/?pushpress=hub'/>
		<item>
		<title>Script to gather and update all Statistics for all the indexes for given databases</title>
		<link>http://hassanszone.wordpress.com/2011/08/17/script-to-gather-and-update-all-statistics-for-all-the-indexes-for-given-databases/</link>
		<comments>http://hassanszone.wordpress.com/2011/08/17/script-to-gather-and-update-all-statistics-for-all-the-indexes-for-given-databases/#comments</comments>
		<pubDate>Wed, 17 Aug 2011 11:53:26 +0000</pubDate>
		<dc:creator>Hassan</dc:creator>
				<category><![CDATA[Sqlserver]]></category>

		<guid isPermaLink="false">http://hassanszone.wordpress.com/?p=273</guid>
		<description><![CDATA[This script is to collect the stats information for a given database on all the indexes part. This query will help you to debug the performance issue related to slowness of database. The very first step we do when it comes to database tunning is to check the updated statistics on all the indexes and [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hassanszone.wordpress.com&amp;blog=3342521&amp;post=273&amp;subd=hassanszone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://hassanszone.wordpress.com/2011/08/17/script-to-gather-and-update-all-statistics-for-all-the-indexes-for-given-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf01e44dff7c6ced6b289dd6b30c17ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Hassan</media:title>
		</media:content>
	</item>
		<item>
		<title>Script On SQL Server 2008 Performance Diagnostic Queries</title>
		<link>http://hassanszone.wordpress.com/2011/07/22/script-on-sql-server-2008-performance-diagnostic-queries/</link>
		<comments>http://hassanszone.wordpress.com/2011/07/22/script-on-sql-server-2008-performance-diagnostic-queries/#comments</comments>
		<pubDate>Fri, 22 Jul 2011 14:25:10 +0000</pubDate>
		<dc:creator>Hassan</dc:creator>
				<category><![CDATA[Sqlserver]]></category>

		<guid isPermaLink="false">http://hassanszone.wordpress.com/2011/07/22/script-on-sql-server-2008-performance-diagnostic-queries/</guid>
		<description><![CDATA[&#8212;&#8212;&#8212;&#8212;&#8212; SQL and OS Version information for current instance&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- SELECT @@VERSION AS [SQL Version Info]; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;- Hardware information from SQL Server 2008&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; (Cannot distinguish between HT and multi-core) SELECT cpu_count AS [Logical CPU Count], hyperthread_ratio AS [Hyperthread Ratio], cpu_count/hyperthread_ratio AS [Physical CPU Count], physical_memory_in_bytes/1048576 AS [Physical Memory (MB)], sqlserver_start_time FROM sys.dm_os_sys_info; &#8212;&#8212;&#8212;&#8212;&#8212; Get sp_configure values [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hassanszone.wordpress.com&amp;blog=3342521&amp;post=268&amp;subd=hassanszone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://hassanszone.wordpress.com/2011/07/22/script-on-sql-server-2008-performance-diagnostic-queries/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf01e44dff7c6ced6b289dd6b30c17ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Hassan</media:title>
		</media:content>
	</item>
		<item>
		<title>SQL Server&#8217;s database backup across more than one file</title>
		<link>http://hassanszone.wordpress.com/2011/06/21/sql-servers-database-backup-across-more-than-one-file/</link>
		<comments>http://hassanszone.wordpress.com/2011/06/21/sql-servers-database-backup-across-more-than-one-file/#comments</comments>
		<pubDate>Tue, 21 Jun 2011 14:35:30 +0000</pubDate>
		<dc:creator>Hassan</dc:creator>
				<category><![CDATA[Sqlserver]]></category>

		<guid isPermaLink="false">http://hassanszone.wordpress.com/2011/06/21/sql-servers-database-backup-across-more-than-one-file/</guid>
		<description><![CDATA[You can stripe a SQL Server&#8217;s database backup across more than one file. Striping a SQL Server backup across more than one backup file can provide performance advantages as well as make it possible to backup a VLDB where there is no single drive available with enough free space. Striped backups are supported in SQL [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hassanszone.wordpress.com&amp;blog=3342521&amp;post=267&amp;subd=hassanszone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://hassanszone.wordpress.com/2011/06/21/sql-servers-database-backup-across-more-than-one-file/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf01e44dff7c6ced6b289dd6b30c17ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Hassan</media:title>
		</media:content>
	</item>
		<item>
		<title>Script to get all currently running requests</title>
		<link>http://hassanszone.wordpress.com/2011/04/06/script-to-get-all-currently-running-requests/</link>
		<comments>http://hassanszone.wordpress.com/2011/04/06/script-to-get-all-currently-running-requests/#comments</comments>
		<pubDate>Wed, 06 Apr 2011 19:06:27 +0000</pubDate>
		<dc:creator>Hassan</dc:creator>
				<category><![CDATA[Scripts to use]]></category>

		<guid isPermaLink="false">http://hassanszone.wordpress.com/?p=257</guid>
		<description><![CDATA[select r.session_id, r.start_time, db = db_name(database_id), r.command, st.text, substring(st.text, r.statement_start_offset/2+1, (case when r.statement_end_offset = -1 then len(convert(nvarchar(max), st.text)) * 2 else r.statement_end_offset end &#8211; r.statement_start_offset)/2+1), r.blocking_session_id, r.wait_type, r.last_wait_type, r.cpu_time, r.total_elapsed_time, r.reads, r.writes, s.memory_usage, s.host_name, s.program_name, s.login_name from sys.dm_exec_requests r join sys.dm_exec_connections c on r.session_id = c.session_id join sys.dm_exec_sessions s on s.session_id = r.session_id cross apply [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hassanszone.wordpress.com&amp;blog=3342521&amp;post=257&amp;subd=hassanszone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://hassanszone.wordpress.com/2011/04/06/script-to-get-all-currently-running-requests/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf01e44dff7c6ced6b289dd6b30c17ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Hassan</media:title>
		</media:content>
	</item>
		<item>
		<title>Script to find CPU Bottel Necks</title>
		<link>http://hassanszone.wordpress.com/2011/03/30/script-to-find-cpu-bottel-necks/</link>
		<comments>http://hassanszone.wordpress.com/2011/03/30/script-to-find-cpu-bottel-necks/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 17:04:26 +0000</pubDate>
		<dc:creator>Hassan</dc:creator>
				<category><![CDATA[Sqlserver]]></category>

		<guid isPermaLink="false">http://hassanszone.wordpress.com/2011/03/30/script-to-find-cpu-bottel-necks/</guid>
		<description><![CDATA[CPU Bottlenecks<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hassanszone.wordpress.com&amp;blog=3342521&amp;post=256&amp;subd=hassanszone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://hassanszone.wordpress.com/2011/03/30/script-to-find-cpu-bottel-necks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf01e44dff7c6ced6b289dd6b30c17ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Hassan</media:title>
		</media:content>
	</item>
		<item>
		<title>Script to Change collation setting of a Sqlserver2008</title>
		<link>http://hassanszone.wordpress.com/2011/03/30/script-to-change-collation-setting-of-a-sqlserver2008-2/</link>
		<comments>http://hassanszone.wordpress.com/2011/03/30/script-to-change-collation-setting-of-a-sqlserver2008-2/#comments</comments>
		<pubDate>Wed, 30 Mar 2011 16:53:56 +0000</pubDate>
		<dc:creator>Hassan</dc:creator>
				<category><![CDATA[Sqlserver]]></category>

		<guid isPermaLink="false">http://hassanszone.wordpress.com/2011/03/30/script-to-change-collation-setting-of-a-sqlserver2008-2/</guid>
		<description><![CDATA[Please run the below code from Cmd prompt to change the server level collation for Sqlserver2008. start /wait \\server\d$\ms_sql_install\ms_sql2008_standard\cd1\setup.exe /QUIET /ACTION=REBUILDDATABASE /INSTANCENAME=MSSQLSERVER /SQLSYSADMINACCOUNTS=Domain\adminxxxx /SAPWD= Test /SQLCOLLATION=SQL_Latin1_General_CP1250_CI_AS<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hassanszone.wordpress.com&amp;blog=3342521&amp;post=253&amp;subd=hassanszone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://hassanszone.wordpress.com/2011/03/30/script-to-change-collation-setting-of-a-sqlserver2008-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf01e44dff7c6ced6b289dd6b30c17ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Hassan</media:title>
		</media:content>
	</item>
		<item>
		<title>Powershell Script for Backup Monitor for all the sqlservers in network</title>
		<link>http://hassanszone.wordpress.com/2011/03/21/powershell-script-for-backup-monitor-for-all-the-sqlservers-in-network/</link>
		<comments>http://hassanszone.wordpress.com/2011/03/21/powershell-script-for-backup-monitor-for-all-the-sqlservers-in-network/#comments</comments>
		<pubDate>Mon, 21 Mar 2011 16:33:14 +0000</pubDate>
		<dc:creator>Hassan</dc:creator>
				<category><![CDATA[Sqlserver]]></category>

		<guid isPermaLink="false">http://hassanszone.wordpress.com/?p=225</guid>
		<description><![CDATA[Problem I had a scenario where one of my production sqlserver agent went into hung state due to which none of the sql jobs were running and no backups were happening though we have a NSM agent sitting on each of the production server which monitors the services and disk threshold. Since the Sql agent [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hassanszone.wordpress.com&amp;blog=3342521&amp;post=225&amp;subd=hassanszone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://hassanszone.wordpress.com/2011/03/21/powershell-script-for-backup-monitor-for-all-the-sqlservers-in-network/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf01e44dff7c6ced6b289dd6b30c17ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Hassan</media:title>
		</media:content>
	</item>
		<item>
		<title>Email Sqlserver Block monitor script</title>
		<link>http://hassanszone.wordpress.com/2011/03/19/sqlserver-block-monitoring-mail-reporting-using-sqlagent-job/</link>
		<comments>http://hassanszone.wordpress.com/2011/03/19/sqlserver-block-monitoring-mail-reporting-using-sqlagent-job/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 19:06:14 +0000</pubDate>
		<dc:creator>Hassan</dc:creator>
				<category><![CDATA[Sqlserver]]></category>

		<guid isPermaLink="false">http://hassanszone.wordpress.com/?p=241</guid>
		<description><![CDATA[Here is the Script which monitors and triggers mail to DBA with SPID and Code which got blocked by other  session id&#8217;s in any of the sqlserver databases. This script gives in depth information to troubleshoot the blocking sessions. /**&#8212;Create an Sqlserver Agent Job to report Blocking events and Mail to DBA team&#8212;-**/ declare @subj [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hassanszone.wordpress.com&amp;blog=3342521&amp;post=241&amp;subd=hassanszone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://hassanszone.wordpress.com/2011/03/19/sqlserver-block-monitoring-mail-reporting-using-sqlagent-job/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf01e44dff7c6ced6b289dd6b30c17ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Hassan</media:title>
		</media:content>
	</item>
		<item>
		<title>Monitoring and Reporting Sqlserver Databases Growth For All Sql Instance.</title>
		<link>http://hassanszone.wordpress.com/2011/03/19/script-to-monitor-the-sqlserver-databases-growth-for-all-network-sqlservers/</link>
		<comments>http://hassanszone.wordpress.com/2011/03/19/script-to-monitor-the-sqlserver-databases-growth-for-all-network-sqlservers/#comments</comments>
		<pubDate>Sat, 19 Mar 2011 18:25:39 +0000</pubDate>
		<dc:creator>Hassan</dc:creator>
				<category><![CDATA[Sqlserver]]></category>

		<guid isPermaLink="false">http://hassanszone.wordpress.com/?p=232</guid>
		<description><![CDATA[&#160; Requirement: I had a requirement to monitor the Growth of all the databases of all the sqlserver instances in network and create the report for higher management. Solution: After trying many things and I got a simple and the best solution to get this job done. To record all the databases growth in your [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hassanszone.wordpress.com&amp;blog=3342521&amp;post=232&amp;subd=hassanszone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://hassanszone.wordpress.com/2011/03/19/script-to-monitor-the-sqlserver-databases-growth-for-all-network-sqlservers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf01e44dff7c6ced6b289dd6b30c17ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Hassan</media:title>
		</media:content>
	</item>
		<item>
		<title>Script to get the sqlserver configuration detials for audit purpose</title>
		<link>http://hassanszone.wordpress.com/2010/06/22/script-to-get-the-sqlserver-configuration-detials-for-audit-purpose/</link>
		<comments>http://hassanszone.wordpress.com/2010/06/22/script-to-get-the-sqlserver-configuration-detials-for-audit-purpose/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 09:55:06 +0000</pubDate>
		<dc:creator>Hassan</dc:creator>
				<category><![CDATA[Scripts to use]]></category>

		<guid isPermaLink="false">http://hassanszone.wordpress.com/?p=222</guid>
		<description><![CDATA[Below script will help you get the configuration details of sqlserver. This configuration can be captured and use it anytime to perform audit and to do inventory. &#8212;-Script to get configuration details&#8212;- SERVERPROPERTY(&#8216;BuildClrVersion&#8217;)as dotNetBuildClrVersion, SERVERPROPERTY(&#8216;ComputerNamePhysicalNetBIOS&#8217;)as ComputerNamePhysicalNetBIOS, SERVERPROPERTY(&#8216;EngineEdition&#8217;)as EngineEdition, SERVERPROPERTY(&#8216;InstanceName&#8217;)as InstanceName, SERVERPROPERTY(&#8216;IsClustered&#8217;)as IsClustered, SERVERPROPERTY(&#8216;IsFullTextInstalled&#8217;)as IsFullTextInstalled, SERVERPROPERTY(&#8216;IsIntegratedSecurityOnly&#8217;)as IsIntegratedSecurityOnly, SERVERPROPERTY(&#8216;IsSingleUser&#8217;)as IsSingleUser, SERVERPROPERTY(&#8216;MachineName&#8217;)as MachineName, SERVERPROPERTY(&#8216;LicenseType&#8217;)as LicenseType, SERVERPROPERTY(&#8216;ProcessID&#8217;)as ProcessID, SERVERPROPERTY(&#8216;ProductVersion&#8217;)as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=hassanszone.wordpress.com&amp;blog=3342521&amp;post=222&amp;subd=hassanszone&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
		<wfw:commentRss>http://hassanszone.wordpress.com/2010/06/22/script-to-get-the-sqlserver-configuration-detials-for-audit-purpose/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/bf01e44dff7c6ced6b289dd6b30c17ea?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">Hassan</media:title>
		</media:content>
	</item>
	</channel>
</rss>
