<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sqlserver007 &#187; Admin</title>
	<atom:link href="http://www.sqlserver007.com/tag/admin/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sqlserver007.com</link>
	<description>Blog on SQL SERVER and Business Intelligence  by Vivekanand Serou</description>
	<lastBuildDate>Fri, 21 May 2010 11:37:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>SQL Service Accounts and Maintenance</title>
		<link>http://www.sqlserver007.com/2010/02/25/sql-service-accounts-and-maintenance/</link>
		<comments>http://www.sqlserver007.com/2010/02/25/sql-service-accounts-and-maintenance/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 17:16:05 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[SQL Administration]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.sqlserver007.com/?p=515</guid>
		<description><![CDATA[At sometime in the afternoon today, I was alerted by the business that SQL reporting services is down. The first thing I checked was to open a report. I saw the following error message on the browser. The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError) Log on [...]]]></description>
			<content:encoded><![CDATA[<p>At sometime in the afternoon today, I was alerted by the business that SQL reporting services is down. The first thing I checked was to open a report. I saw the following error message on the browser.</p>
<p><strong><br />
The report server has encountered a configuration error. Logon failed for the unattended execution account. (rsServerConfigurationError)<br />
Log on failed. (rsLogonFailed)<br />
The report server cannot open a connection to the report server database. A connection to the database is required for all requests and processing. (rsInternalError)<br />
Login failed. The login is from an untrusted domain and cannot be used with Windows authentication.<br />
</strong></p>
<p>I did not understand this as I have checked the same report 10 minutes ago. So checked the databases and all the connections. Everything seems fine. Now checked the application logs on the server and the errors came up indicating the service accounts access is denied. I was surprised and asked the System Administrator if the permissions were changed on the Active Directory account. The permissions seems to be fine but for some reason <strong>the account is locked out</strong>. Upon investigation I realised that one of the administrators was trying to use the SQL service account  for installing a new SQL server box and typed the password wrong as many a times to make the lockout happen.</p>
<p>Lessons Learnt<br />
a. create a seperate SQL server account for each Live SQL Server Instance<br />
b. Make sure you dont type the password wrong for the Service accounts</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2010/02/25/sql-service-accounts-and-maintenance/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DMV Report for Index Fragmentation and Statistics Update</title>
		<link>http://www.sqlserver007.com/2009/10/06/dmv-report-for-index-fragmentation-and-statistics-update/</link>
		<comments>http://www.sqlserver007.com/2009/10/06/dmv-report-for-index-fragmentation-and-statistics-update/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 17:28:06 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[SQL Administration]]></category>
		<category><![CDATA[TSQL Development]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.sqlserver007.com/?p=268</guid>
		<description><![CDATA[Recently the ETL load times of my Datawarehouse are increasing and so I decided to check the Indexes status on the tables . I found some fragmentation on the indexes and also some Statistics that are not being updated regularly . I searched online and found this blog by Ben Nevarez(SQL Blog). I decided to [...]]]></description>
			<content:encoded><![CDATA[<p>Recently the ETL load times of my Datawarehouse are increasing and so I decided to check the Indexes status on the tables . I found some fragmentation on the indexes and also some Statistics that are not being updated regularly . I searched online and found this blog by <a href="http://sqlblog.com/blogs/ben_nevarez/archive/2009/10/06/rebuilding-indexes-vs-updating-statistics.aspx">Ben Nevarez(SQL Blog)</a>.<br />
I decided to check the fragmentation levels of the Index after the ETL load is done daily on a regular basis. So I digged deep into the DMV&#8217;s and got this script below</p>
<pre>
select
OBJECT_NAME(ps.object_id) as TableName
,si.Name
,ps.Avg_Fragmentation_in_percent
,STATS_DATE(ss.object_id,ss.stats_id) as LastUpdatedStatistics
from
sys.dm_db_index_physical_stats(DB_ID(DB_NAME()),null,null,null,null) ps
join
sysindexes si
on
ps.object_id = si.id
and
ps.index_id = si.indid
left outer join
sys.stats ss
on
ss.object_id = ps.object_id
and
ss.name = si.name
where
ps.avg_fragmentation_in_percent > 10
order by
ps.avg_fragmentation_in_percent desc
</pre>
<p>I published the above query in my Reporting services suite of Operational Reports and check it daily morning. The report shows all the Indexes with more than 10% percent fragmentation along with Last updated Statistics time . If you want to go further.You may want to rebuild all the indexes that are above 20% fragmented in TSQL. If there is a better way of doing it please comment.</p>
<p><a href="http://www.twitter.com/vivekserou">@Vivekserou</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/10/06/dmv-report-for-index-fragmentation-and-statistics-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Kill the Sql server process for a Database</title>
		<link>http://www.sqlserver007.com/2009/05/18/kill-the-sql-server-process-for-a-database/</link>
		<comments>http://www.sqlserver007.com/2009/05/18/kill-the-sql-server-process-for-a-database/#comments</comments>
		<pubDate>Mon, 18 May 2009 09:33:13 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[SQL Administration]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.sqlserver007.com/?p=130</guid>
		<description><![CDATA[When Doing database Restore sometimes we may need to kill the spid&#8217;s in the database so that the connections are not open. Going through the spids in sp_who or sp_who2 can sometimes be a tedious task if there are more connections to the database. The following TSQL should generate the list of kill statements for [...]]]></description>
			<content:encoded><![CDATA[<p>When Doing database Restore sometimes we may need to kill the spid&#8217;s in the database so that the connections are not open. Going through the spids in sp_who or sp_who2 can sometimes be a tedious task if there are more connections to the database. The following TSQL should generate the list of kill statements for a particular database with the spids.</p>
<p><strong>DECLARE @spid VARCHAR(3000)</p>
<p>DECLARE @Databasename VARCHAR(100)</p>
<p>SET @spid = &#8221;<br />
SET @Databasename =&#8217;AdventureWorks&#8217;</p>
<p>SELECT @spid = + @spid + &#8216;Kill &#8216;+ CONVERT(VARCHAR(10),spid) +&#8217;;&#8217; FROM MASTER..sysprocesses WHERE DB_NAME(dbid) = @Databasename</p>
<p>PRINT @spid </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/05/18/kill-the-sql-server-process-for-a-database/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disk Space in Sql server</title>
		<link>http://www.sqlserver007.com/2009/04/23/disk-space-in-sql-server/</link>
		<comments>http://www.sqlserver007.com/2009/04/23/disk-space-in-sql-server/#comments</comments>
		<pubDate>Thu, 23 Apr 2009 17:12:48 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[SQL Administration]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.sqlserver007.com/?p=105</guid>
		<description><![CDATA[How to get the Disk Space in SQL Server? There are 2 ways a. xp_fixeddrives &#8212; The Easy way b. Ftsutil(xp_cmdshell) &#8212; If I want to know the percentage of free space in harddisk use FTSUTIL . The only thing you need to enable is the xp_cmdshell. Click here to read how to enable XP_cmdshell [...]]]></description>
			<content:encoded><![CDATA[<p>How to get the Disk Space in SQL Server?</p>
<p>There are 2 ways</p>
<p>a. xp_fixeddrives &#8212; The Easy way</p>
<p>b. Ftsutil(xp_cmdshell)  &#8212; If I want to know the percentage of free space in harddisk use FTSUTIL . The only thing you need to enable is the xp_cmdshell. </p>
<p><a href="http://www.sqlserver007.com/2009/04/21/enabling-xp_cmdshell-in-sql-server-2008/">Click here to read how to enable XP_cmdshell</a></p>
<p>Here is the proc</p>
<p><strong><br />
		CREATE  PROCEDURE [dbo].[usp_GetDiskSpace]<br />
								&#8211; Add the parameters for the stored procedure here<br />
							AS<br />
							BEGIN<br />
								&#8211; SET NOCOUNT ON added to prevent extra result sets from<br />
								&#8211; interfering with SELECT statements.<br />
								SET NOCOUNT ON;</p>
<p>							DECLARE	@Drive TINYINT,<br />
								@SQL VARCHAR(100)</p>
<p>							SET	@Drive = 97</p>
<p>							&#8211; Setup Staging Area<br />
							DECLARE	@Drives TABLE<br />
								(<br />
									Drive CHAR(1),<br />
									Info VARCHAR(80)<br />
								)</p>
<p>								TRUNCATE TABLE Freediskspace</p>
<p>							WHILE @Drive < = 122<br />
								BEGIN<br />
									SET	@SQL = 'EXEC XP_CMDSHELL ''fsutil volume diskfree ' + CHAR(@Drive) + ':'''</p>
<p>									INSERT	@Drives<br />
										(<br />
											Info<br />
										)<br />
									EXEC	(@SQL)</p>
<p>									UPDATE	@Drives<br />
									SET	Drive = CHAR(@Drive)<br />
									WHERE	Drive IS NULL</p>
<p>									SET	@Drive = @Drive + 1<br />
								END</p>
<p>							-- Show the expected output</p>
<p>							INSERT INTO FreeDiskSpace<br />
							(<br />
							Drive<br />
							,TotalGB<br />
							,FreeGB<br />
							)<br />
							SELECT		Drive,<br />
									SUM(CASE WHEN Info LIKE 'Total # of bytes             : %' THEN CAST(REPLACE(SUBSTRING(Info, 32, 48), CHAR(13), '') AS FLOAT) ELSE CAST(0 AS BIGINT) END)/1073741824 AS TotalGB,<br />
									SUM(CASE WHEN Info LIKE 'Total # of free bytes        : %' THEN CAST(REPLACE(SUBSTRING(Info, 32, 48), CHAR(13), '') AS floaT) ELSE CAST(0 AS BIGINT) END)/1073741824 AS FreeGB<br />
											FROM		(<br />
										SELECT	Drive,<br />
											Info<br />
										FROM	@Drives<br />
										WHERE	Info LIKE 'Total # of %'<br />
									) AS d<br />
							GROUP BY	Drive<br />
							ORDER BY	Drive</p>
<p>							UPDATE FreeDiskSpace<br />
							SET PercentageGB = CONVERT(DECIMAL(5,2),ROUND(CONVERT(DECIMAL(7,2),ROUND(FreeGB,2)) * 100  / CONVERT(DECIMAL(7,2),ROUND(TotalGB,2)),2))<br />
							WHERE PercentageGB IS null</p>
<p>							SELECT<br />
							drive<br />
							,CONVERT(DECIMAL(7,2),ROUND(TotalGB,2)) AS TotalDiskSpace<br />
							,CONVERT(DECIMAL(7,2),ROUND(FreeGB,2)) AS FreeSpace<br />
							,PercentageGB<br />
							 FROM FreeDiskSpace</p>
<p>							END</p>
<p>							GO</strong></p>
<p></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/04/23/disk-space-in-sql-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enabling Xp_cmdShell in Sql server 2008</title>
		<link>http://www.sqlserver007.com/2009/04/21/enabling-xp_cmdshell-in-sql-server-2008/</link>
		<comments>http://www.sqlserver007.com/2009/04/21/enabling-xp_cmdshell-in-sql-server-2008/#comments</comments>
		<pubDate>Tue, 21 Apr 2009 10:38:10 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[SQL Administration]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.sqlserver007.com/?p=95</guid>
		<description><![CDATA[In Sql server 2008 the Surface area configuration no longer exists. you can enable the Xp_cmdshell either by the Policy based management or by using the sp_configure]]></description>
			<content:encoded><![CDATA[<p>In Sql server 2008 the Surface area configuration no longer exists. you can enable the Xp_cmdshell either by the Policy based management or by using the sp_configure</p>
<div id="attachment_98" class="wp-caption aligncenter" style="width: 419px"><img src="http://www.sqlserver007.com/wp-content/uploads/2009/04/xp_cmdshell1.jpg" alt="Enabling Xp_cmdshell in Sql Server 2008" title="xp_cmdshell" width="409" height="228" class="size-full wp-image-98" /><p class="wp-caption-text">Enabling Xp_cmdshell in Sql Server 2008</p></div>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/04/21/enabling-xp_cmdshell-in-sql-server-2008/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Deprecated Features in SQL server 2008</title>
		<link>http://www.sqlserver007.com/2009/04/01/deprecated-features-in-sql-server-2008/</link>
		<comments>http://www.sqlserver007.com/2009/04/01/deprecated-features-in-sql-server-2008/#comments</comments>
		<pubDate>Wed, 01 Apr 2009 20:38:46 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[SQL Administration]]></category>
		<category><![CDATA[TSQL Development]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://www.sqlserver007.com/?p=3</guid>
		<description><![CDATA[Here are the List of features that are deprecated in Sql server 2008 http://msdn.microsoft.com/en-us/library/ms143729.aspx]]></description>
			<content:encoded><![CDATA[<p>Here are the List of features that are deprecated in Sql server 2008</p>
<p><a href="http://msdn.microsoft.com/en-us/library/ms143729.aspx">http://msdn.microsoft.com/en-us/library/ms143729.aspx</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/04/01/deprecated-features-in-sql-server-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>DayLight Savings and Sql Agent</title>
		<link>http://www.sqlserver007.com/2009/03/29/daylight-savings-and-sql-agent/</link>
		<comments>http://www.sqlserver007.com/2009/03/29/daylight-savings-and-sql-agent/#comments</comments>
		<pubDate>Sun, 29 Mar 2009 08:52:25 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[SQL Administration]]></category>
		<category><![CDATA[TSQL Development]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://sqlserver007.wordpress.com/?p=47</guid>
		<description><![CDATA[Ran a Job yesterday to check how the SQL agent Handles the DayLight Savings Created the following Table Created the Following procedure to enter the current Date and Ran the Job every minute from March 28th 2009 22:50 to Mar 29th 2009 3:00 AM Results: There was no 01:00 AM on March 29th !!!!. So [...]]]></description>
			<content:encoded><![CDATA[<p>Ran a Job yesterday to check how the SQL agent Handles the DayLight Savings</p>
<p>Created the following Table</p>
<div id="attachment_50" class="wp-caption aligncenter" style="width: 319px"><img src="http://sqlserver007.files.wordpress.com/2009/03/createtable2.jpg" alt="Table" title="createtable2" width="309" height="79" class="size-full wp-image-50" /><p class="wp-caption-text">Table</p></div>
<p>Created the Following procedure to enter the current Date</p>
<div id="attachment_50" class="wp-caption aligncenter" style="width: 319px"><img src="http://sqlserver007.files.wordpress.com/2009/03/createprocedure.jpg" alt="createprocedure" title="createprocedure" width="311" height="79" class="aligncenter size-full wp-image-51" /><p class="wp-caption-text">Procedure</p></div>
<p>and Ran the Job every minute from March 28th 2009  22:50 to Mar 29th 2009 3:00 AM</p>
<p><strong>Results:</strong></p>
<div id="attachment_55" class="wp-caption aligncenter" style="width: 213px"><img src="http://sqlserver007.files.wordpress.com/2009/03/daylightsaving-results1.jpg" alt="daylightsaving-results" title="daylightsaving-results" width="203" height="454" class="size-full wp-image-55" /><p class="wp-caption-text">daylightsaving-results</p></div>
<p>There was no 01:00 AM on March 29th !!!!. So any jobs scheduled at 01:00 AM will not run. Sql Agent cannot handle it!!!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/03/29/daylight-savings-and-sql-agent/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Backup Report on SQL SERVER Databases</title>
		<link>http://www.sqlserver007.com/2009/03/17/backup-report-on-sql-server-databases/</link>
		<comments>http://www.sqlserver007.com/2009/03/17/backup-report-on-sql-server-databases/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 10:17:45 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[SQL Administration]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://sqlserver007.wordpress.com/?p=44</guid>
		<description><![CDATA[The Following Script will output the List of Databases in the SQL server and gets the Last Date the Databases were backed up select Convert(Varchar(25),server_name) as &#8216;Server Name&#8217; ,convert(varchar(25),database_name) as &#8216;Database&#8217; ,max(backup_finish_date) as &#8216;Last_backup_date&#8217; from msdb..backupset Where database_name in (select name from master..sysdatabases) and server_name = @@servername group by server_name,database_name order by Last_backup_date DESC]]></description>
			<content:encoded><![CDATA[<p>The Following Script will output the List of Databases in the SQL server and gets the Last Date the Databases were backed up</p>
<p><strong>select Convert(Varchar(25),server_name) as &#8216;Server Name&#8217;<br />
,convert(varchar(25),database_name) as &#8216;Database&#8217;<br />
,max(backup_finish_date) as &#8216;Last_backup_date&#8217;<br />
from msdb..backupset<br />
Where database_name<br />
in<br />
(select name from master..sysdatabases)<br />
and server_name = @@servername<br />
group by server_name,database_name order by Last_backup_date DESC </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/03/17/backup-report-on-sql-server-databases/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Problem with Maintenance Plan in Sql server 2005 After installing SP3</title>
		<link>http://www.sqlserver007.com/2009/02/19/problem-with-maintenance-plan-in-sql-server-2005-after-installing-sp3/</link>
		<comments>http://www.sqlserver007.com/2009/02/19/problem-with-maintenance-plan-in-sql-server-2005-after-installing-sp3/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 13:00:13 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[SQL Administration]]></category>
		<category><![CDATA[Admin]]></category>

		<guid isPermaLink="false">http://sqlserver007.wordpress.com/?p=25</guid>
		<description><![CDATA[Problem: I was trying to configure the backups on Sql Server using the Maintenace Plan. When I opened it . I got the following error TITLE: Microsoft SQL Server Management Studio &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum) For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&#38;LinkId=20476 &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212; ADDITIONAL INFORMATION: An exception occurred while executing a Transact-SQL statement [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Problem:</strong></p>
<p>I was trying to configure the backups on Sql Server using the Maintenace Plan.</p>
<p>When I opened it . I got the following error</p>
<p>TITLE: Microsoft SQL Server Management Studio</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Failed to retrieve data for this request. (Microsoft.SqlServer.SmoEnum)</p>
<p>For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;LinkId=20476</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
ADDITIONAL INFORMATION:</p>
<p>An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Invalid column name &#8216;from_msx&#8217;.<br />
Invalid column name &#8216;has_targets&#8217;. (Microsoft SQL Server, Error: 207)</p>
<p>For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&amp;ProdVer=09.00.4035&amp;EvtSrc=MSSQLServer&amp;EvtID=207&amp;LinkId=20476</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
BUTTONS:</p>
<p>OK<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p><strong>Analysis:<!-- START CUSTOM WIDGETBUCKS CODE -->
<div><script src="http://api.widgetbucks.com/script/ads.js?uid=LcJ47FdmVZcAalx4"></script></div>
<p><!-- END CUSTOM WIDGETBUCKS CODE --></strong></p>
<p>The resource DB has not been Upgraded to  SP2 version 9.00.3042.00.</p>
<p>The following Script should prove it.</p>
<p>SELECT SERVERPROPERTY(&#8216;ResourceVersion&#8217;) as ResourceDB, SERVERPROPERTY(&#8216;ResourceLastUpdateDateTime&#8217;) as ResourceDBLastUpdate,</p>
<p>SERVERPROPERTY(&#8216;ProductVersion&#8217;) as Ver, SERVERPROPERTY (&#8216;ProductLevel&#8217;) as SP;</p>
<p>GO</p>
<p align="left">A specific &#8220;msx&#8221; table found in the master database, that holds details of maintenance jobs, did not have certain additional columns added to it after the upgrade to SP2.</p>
<p align="left"><strong>Solution</strong> :</p>
<p align="left">There are 2 solutions to the problem depending on the risk .</p>
<p align="left"><strong>Solution 1</strong></p>
<p align="left">Creating the jobs instead of Maintenance Plans for important Tasks</p>
<p align="left"><strong>Solution 2</strong></p>
<p align="left">Go to the SQL Install Folder</p>
<p align="left">&#8220;C:\Program Files\Microsoft SQL Server\&lt;instance-installation -folder&gt;MSSQL\Install&#8221;</p>
<p align="left">like</p>
<p align="left">C:\Program Files\Microsoft SQL Server\MSSQL.1\MSSQL\Install</p>
<p align="left">and run the sysdbupg.sql script.</p>
<p align="left">That should add the colums to the maintenance tables and the maintenance tasks can be created.</p>
<p align="left">
<p align="left">
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/02/19/problem-with-maintenance-plan-in-sql-server-2005-after-installing-sp3/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Policy-based Management</title>
		<link>http://www.sqlserver007.com/2009/02/15/policy-based-management/</link>
		<comments>http://www.sqlserver007.com/2009/02/15/policy-based-management/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 23:32:46 +0000</pubDate>
		<dc:creator>Vivek</dc:creator>
				<category><![CDATA[SQL Administration]]></category>
		<category><![CDATA[Admin]]></category>

		<guid isPermaLink="false">http://sqlserver007.wordpress.com/?p=3</guid>
		<description><![CDATA[Policy-Based Management(PBM) is the expansion of advanced DDL trigger mechanisms on the Server. Think of the following things a. How do I allow the users to create the table in specific naming conditions like starting only with &#8216;T&#8217;? b. How about checking the availability of the latest Sql Server backups? c. How about limiting the [...]]]></description>
			<content:encoded><![CDATA[<p>Policy-Based Management(PBM) is the expansion of advanced DDL trigger mechanisms on the Server. Think of the following things</p>
<p>a. How do I allow the users to create the table in specific naming conditions like starting only with &#8216;T&#8217;?</p>
<p>b. How about checking the availability of the latest Sql Server backups?</p>
<p>c. How about limiting the number of CPU in a sql server?</p>
<p>Yes there are countless of server management applications with the PBM.Each POLICY is based on a CONDITION and each CONDITION decides the state of a specific target(like databases,tables,stored procedures etc.) with respect to a particular FACET.</p>
<p>There are a list of builtin policies available on the Sql server 2008 by default. They can be imported from the following location C:\Program Files\Microsoft SQL Server\100\Tools\Policies. All the policies can be imported and exported as they are configured in XML.The Developers can themselves create their own facets depending on their Organisation policies.</p>
<p>More on application of policies coming soon..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sqlserver007.com/2009/02/15/policy-based-management/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
