Wednesday, March 28, 2012
Maintenance Plan does not show up under Management Folder
I am running SQL 2005 SP2 and when I connect through Visual Studio I do not
see the maintenance plan option under Management. I have tried connecting
with the SA account and my AD account and neither one has this option. They
are both assigned the role of sysadmin. Any thoughts?
Thanks
AlAre you connecting to Express Edition? Does the Maintenance Plans folder
show up when connecting through Management Studio?
Aaron Bertrand
SQL Server MVP
"Al Stephenson" <AlStephenson@.discussions.microsoft.com> wrote in message
news:0130F16D-725C-47B4-8E86-EED40B8D45A0@.microsoft.com...
> Hi.
> I am running SQL 2005 SP2 and when I connect through Visual Studio I do
> not
> see the maintenance plan option under Management. I have tried connecting
> with the SA account and my AD account and neither one has this option.
> They
> are both assigned the role of sysadmin. Any thoughts?
> Thanks
> Al|||Looks like instead of SQL 2005 Standard we are running SQL 2005 Express. Thi
s
is part of a Sharepoint install. Will Express support maintenance plans? It
does not show up under Management Studio.
Thanks
"Aaron Bertrand [SQL Server MVP]" wrote:
> Are you connecting to Express Edition? Does the Maintenance Plans folder
> show up when connecting through Management Studio?
> --
> Aaron Bertrand
> SQL Server MVP
>
> "Al Stephenson" <AlStephenson@.discussions.microsoft.com> wrote in message
> news:0130F16D-725C-47B4-8E86-EED40B8D45A0@.microsoft.com...
>
>|||> Looks like instead of SQL 2005 Standard we are running SQL 2005 Express.
> This
> is part of a Sharepoint install. Will Express support maintenance plans?
> It
> does not show up under Management Studio.
No, and if the node is there in Management Studio Express Edition, it is
likely only there to manage other instances... since Express does not have
Agent, which is a requirement for maintenance plans.
Andrew Kelly recently pointed out some links to help you achieve the same
kind of functionality through other means:
Backing up Express
http://blogs.msdn.com/rogerwolterbl.../13/575974.aspx
http://www.sqldbatips.com/showarticle.asp?ID=27
Automating Database maintenance in SQL 2005 Express Edition Part I
http://www.sqldbatips.com/showarticle.asp?ID=29
Automating Database maintenance in SQL 2005 Express Edition Part II
Aaron Bertrand
SQL Server MVP|||Thanks for the info. I do have one other instance of SQL 2005 Standard
edition running and I connected to it with Management Studio and I see the
Maintenance Plan folder but when I right click on it the only option is to
refresh. I have sysadmin role assigned to my AD account and SQL is configure
d
for SQL and Windows Authentication. What am I missing?
"Aaron Bertrand [SQL Server MVP]" wrote:
> No, and if the node is there in Management Studio Express Edition, it is
> likely only there to manage other instances... since Express does not have
> Agent, which is a requirement for maintenance plans.
> Andrew Kelly recently pointed out some links to help you achieve the same
> kind of functionality through other means:
> Backing up Express
> http://blogs.msdn.com/rogerwolterbl.../13/575974.aspx
> http://www.sqldbatips.com/showarticle.asp?ID=27
> Automating Database maintenance in SQL 2005 Express Edition Part I
> http://www.sqldbatips.com/showarticle.asp?ID=29
> Automating Database maintenance in SQL 2005 Express Edition Part II
> --
> Aaron Bertrand
> SQL Server MVP
>
>|||Are you using Management Studio Express Edition, or Management Studio?
Aaron Bertrand
SQL Server MVP
"Al Stephenson" <AlStephenson@.discussions.microsoft.com> wrote in message
news:64F1F0C8-8A53-4299-9D7F-C165F90BB515@.microsoft.com...[vbcol=seagreen]
> Thanks for the info. I do have one other instance of SQL 2005 Standard
> edition running and I connected to it with Management Studio and I see the
> Maintenance Plan folder but when I right click on it the only option is to
> refresh. I have sysadmin role assigned to my AD account and SQL is
> configured
> for SQL and Windows Authentication. What am I missing?
> "Aaron Bertrand [SQL Server MVP]" wrote:
>sql
Maintenance Plan does not show up under Management Folder
I am running SQL 2005 SP2 and when I connect through Visual Studio I do not
see the maintenance plan option under Management. I have tried connecting
with the SA account and my AD account and neither one has this option. They
are both assigned the role of sysadmin. Any thoughts?
Thanks
Al
Are you connecting to Express Edition? Does the Maintenance Plans folder
show up when connecting through Management Studio?
Aaron Bertrand
SQL Server MVP
"Al Stephenson" <AlStephenson@.discussions.microsoft.com> wrote in message
news:0130F16D-725C-47B4-8E86-EED40B8D45A0@.microsoft.com...
> Hi.
> I am running SQL 2005 SP2 and when I connect through Visual Studio I do
> not
> see the maintenance plan option under Management. I have tried connecting
> with the SA account and my AD account and neither one has this option.
> They
> are both assigned the role of sysadmin. Any thoughts?
> Thanks
> Al
|||Looks like instead of SQL 2005 Standard we are running SQL 2005 Express. This
is part of a Sharepoint install. Will Express support maintenance plans? It
does not show up under Management Studio.
Thanks
"Aaron Bertrand [SQL Server MVP]" wrote:
> Are you connecting to Express Edition? Does the Maintenance Plans folder
> show up when connecting through Management Studio?
> --
> Aaron Bertrand
> SQL Server MVP
>
> "Al Stephenson" <AlStephenson@.discussions.microsoft.com> wrote in message
> news:0130F16D-725C-47B4-8E86-EED40B8D45A0@.microsoft.com...
>
>
|||> Looks like instead of SQL 2005 Standard we are running SQL 2005 Express.
> This
> is part of a Sharepoint install. Will Express support maintenance plans?
> It
> does not show up under Management Studio.
No, and if the node is there in Management Studio Express Edition, it is
likely only there to manage other instances... since Express does not have
Agent, which is a requirement for maintenance plans.
Andrew Kelly recently pointed out some links to help you achieve the same
kind of functionality through other means:
Backing up Express
http://blogs.msdn.com/rogerwolterblog/archive/2006/04/13/575974.aspx
http://www.sqldbatips.com/showarticle.asp?ID=27
Automating Database maintenance in SQL 2005 Express Edition Part I
http://www.sqldbatips.com/showarticle.asp?ID=29
Automating Database maintenance in SQL 2005 Express Edition Part II
Aaron Bertrand
SQL Server MVP
|||Thanks for the info. I do have one other instance of SQL 2005 Standard
edition running and I connected to it with Management Studio and I see the
Maintenance Plan folder but when I right click on it the only option is to
refresh. I have sysadmin role assigned to my AD account and SQL is configured
for SQL and Windows Authentication. What am I missing?
"Aaron Bertrand [SQL Server MVP]" wrote:
> No, and if the node is there in Management Studio Express Edition, it is
> likely only there to manage other instances... since Express does not have
> Agent, which is a requirement for maintenance plans.
> Andrew Kelly recently pointed out some links to help you achieve the same
> kind of functionality through other means:
> Backing up Express
> http://blogs.msdn.com/rogerwolterblog/archive/2006/04/13/575974.aspx
> http://www.sqldbatips.com/showarticle.asp?ID=27
> Automating Database maintenance in SQL 2005 Express Edition Part I
> http://www.sqldbatips.com/showarticle.asp?ID=29
> Automating Database maintenance in SQL 2005 Express Edition Part II
> --
> Aaron Bertrand
> SQL Server MVP
>
>
|||Are you using Management Studio Express Edition, or Management Studio?
Aaron Bertrand
SQL Server MVP
"Al Stephenson" <AlStephenson@.discussions.microsoft.com> wrote in message
news:64F1F0C8-8A53-4299-9D7F-C165F90BB515@.microsoft.com...[vbcol=seagreen]
> Thanks for the info. I do have one other instance of SQL 2005 Standard
> edition running and I connected to it with Management Studio and I see the
> Maintenance Plan folder but when I right click on it the only option is to
> refresh. I have sysadmin role assigned to my AD account and SQL is
> configured
> for SQL and Windows Authentication. What am I missing?
> "Aaron Bertrand [SQL Server MVP]" wrote:
Maintenance Plan does not show up under Management Folder
I am running SQL 2005 SP2 and when I connect through Visual Studio I do not
see the maintenance plan option under Management. I have tried connecting
with the SA account and my AD account and neither one has this option. They
are both assigned the role of sysadmin. Any thoughts?
Thanks
AlAre you connecting to Express Edition? Does the Maintenance Plans folder
show up when connecting through Management Studio?
--
Aaron Bertrand
SQL Server MVP
"Al Stephenson" <AlStephenson@.discussions.microsoft.com> wrote in message
news:0130F16D-725C-47B4-8E86-EED40B8D45A0@.microsoft.com...
> Hi.
> I am running SQL 2005 SP2 and when I connect through Visual Studio I do
> not
> see the maintenance plan option under Management. I have tried connecting
> with the SA account and my AD account and neither one has this option.
> They
> are both assigned the role of sysadmin. Any thoughts?
> Thanks
> Al|||Looks like instead of SQL 2005 Standard we are running SQL 2005 Express. This
is part of a Sharepoint install. Will Express support maintenance plans? It
does not show up under Management Studio.
Thanks
"Aaron Bertrand [SQL Server MVP]" wrote:
> Are you connecting to Express Edition? Does the Maintenance Plans folder
> show up when connecting through Management Studio?
> --
> Aaron Bertrand
> SQL Server MVP
>
> "Al Stephenson" <AlStephenson@.discussions.microsoft.com> wrote in message
> news:0130F16D-725C-47B4-8E86-EED40B8D45A0@.microsoft.com...
> > Hi.
> >
> > I am running SQL 2005 SP2 and when I connect through Visual Studio I do
> > not
> > see the maintenance plan option under Management. I have tried connecting
> > with the SA account and my AD account and neither one has this option.
> > They
> > are both assigned the role of sysadmin. Any thoughts?
> >
> > Thanks
> >
> > Al
>
>|||> Looks like instead of SQL 2005 Standard we are running SQL 2005 Express.
> This
> is part of a Sharepoint install. Will Express support maintenance plans?
> It
> does not show up under Management Studio.
No, and if the node is there in Management Studio Express Edition, it is
likely only there to manage other instances... since Express does not have
Agent, which is a requirement for maintenance plans.
Andrew Kelly recently pointed out some links to help you achieve the same
kind of functionality through other means:
Backing up Express
http://blogs.msdn.com/rogerwolterblog/archive/2006/04/13/575974.aspx
http://www.sqldbatips.com/showarticle.asp?ID=27
Automating Database maintenance in SQL 2005 Express Edition Part I
http://www.sqldbatips.com/showarticle.asp?ID=29
Automating Database maintenance in SQL 2005 Express Edition Part II
--
Aaron Bertrand
SQL Server MVP|||Thanks for the info. I do have one other instance of SQL 2005 Standard
edition running and I connected to it with Management Studio and I see the
Maintenance Plan folder but when I right click on it the only option is to
refresh. I have sysadmin role assigned to my AD account and SQL is configured
for SQL and Windows Authentication. What am I missing?
"Aaron Bertrand [SQL Server MVP]" wrote:
> > Looks like instead of SQL 2005 Standard we are running SQL 2005 Express.
> > This
> > is part of a Sharepoint install. Will Express support maintenance plans?
> > It
> > does not show up under Management Studio.
> No, and if the node is there in Management Studio Express Edition, it is
> likely only there to manage other instances... since Express does not have
> Agent, which is a requirement for maintenance plans.
> Andrew Kelly recently pointed out some links to help you achieve the same
> kind of functionality through other means:
> Backing up Express
> http://blogs.msdn.com/rogerwolterblog/archive/2006/04/13/575974.aspx
> http://www.sqldbatips.com/showarticle.asp?ID=27
> Automating Database maintenance in SQL 2005 Express Edition Part I
> http://www.sqldbatips.com/showarticle.asp?ID=29
> Automating Database maintenance in SQL 2005 Express Edition Part II
> --
> Aaron Bertrand
> SQL Server MVP
>
>|||Are you using Management Studio Express Edition, or Management Studio?
--
Aaron Bertrand
SQL Server MVP
"Al Stephenson" <AlStephenson@.discussions.microsoft.com> wrote in message
news:64F1F0C8-8A53-4299-9D7F-C165F90BB515@.microsoft.com...
> Thanks for the info. I do have one other instance of SQL 2005 Standard
> edition running and I connected to it with Management Studio and I see the
> Maintenance Plan folder but when I right click on it the only option is to
> refresh. I have sysadmin role assigned to my AD account and SQL is
> configured
> for SQL and Windows Authentication. What am I missing?
> "Aaron Bertrand [SQL Server MVP]" wrote:
>> > Looks like instead of SQL 2005 Standard we are running SQL 2005
>> > Express.
>> > This
>> > is part of a Sharepoint install. Will Express support maintenance
>> > plans?
>> > It
>> > does not show up under Management Studio.
>> No, and if the node is there in Management Studio Express Edition, it is
>> likely only there to manage other instances... since Express does not
>> have
>> Agent, which is a requirement for maintenance plans.
>> Andrew Kelly recently pointed out some links to help you achieve the same
>> kind of functionality through other means:
>> Backing up Express
>> http://blogs.msdn.com/rogerwolterblog/archive/2006/04/13/575974.aspx
>> http://www.sqldbatips.com/showarticle.asp?ID=27
>> Automating Database maintenance in SQL 2005 Express Edition Part I
>> http://www.sqldbatips.com/showarticle.asp?ID=29
>> Automating Database maintenance in SQL 2005 Express Edition Part II
>> --
>> Aaron Bertrand
>> SQL Server MVP
>>
Monday, March 26, 2012
Maintenance Plan - Not under Management Folder
Hi,
I installed the SQL Server Management Studio Express this morning and am able to attach to my SQL2000 instance runnng on my laptop. I wanted to confirm my database backup schedules but there is no Maintenance plan under the Management Folder in SQL Server Management Studio Express.
Can someone please assit me in wotking this out..
Regards..
Peter.
Is there a Legacy node (with its own Database Maintenance Plans node) under Management? I'm not sure what happens when you try to manage a SQL 2000 server, but when upgrading to 2005, that's where the 'safety copies' of the old maintenance plans live, since the ones in 2005 are so different that exact conversion isn't always possible.
Due to this, it may not be possible to manage SQL 2000 maintenance plans with the 2005 management tools -- again, this is just a guess from my side, as I just did away with my last SQL 2000 server last week, and can't check.
'//mdb
|||
Hi,
No there's no node under any folder fro even trying to setup maintenance plans, that's my main issue. I currently have scherduled backups performed on my databases each day and I noted when you right click a database you can back it up but not schedule backups so I wanted to look at perhaps setting up a mainteneace paln.
Regards..
Peter.
|||The maintenance plan UI in Management Studio uses SQL Agent to run a periodic job to perform the maintenance. SQL Agent is not included in SQL Server Express, so Management Studio Express does not include maintenance plan UI.
You should be able to view existing maintenance plans on SQL Server 2000 servers though. Is this not working for you?
|||Hi,
Yes I came to that conclusion as well after reviewing the comparisons between all versions of SQL 2005 on the Microsoft web site.
No there is no node to view any exisitng or setup any maintnence plans for my SQL2000 instance.
Regards..
Peter.
Maintenance Plan - Not under Management Folder
Hi,
I installed the SQL Server Management Studio Express this morning and am able to attach to my SQL2000 instance runnng on my laptop. I wanted to confirm my database backup schedules but there is no Maintenance plan under the Management Folder in SQL Server Management Studio Express.
Can someone please assit me in wotking this out..
Regards..
Peter.
Is there a Legacy node (with its own Database Maintenance Plans node) under Management? I'm not sure what happens when you try to manage a SQL 2000 server, but when upgrading to 2005, that's where the 'safety copies' of the old maintenance plans live, since the ones in 2005 are so different that exact conversion isn't always possible.
Due to this, it may not be possible to manage SQL 2000 maintenance plans with the 2005 management tools -- again, this is just a guess from my side, as I just did away with my last SQL 2000 server last week, and can't check.
'//mdb
|||
Hi,
No there's no node under any folder fro even trying to setup maintenance plans, that's my main issue. I currently have scherduled backups performed on my databases each day and I noted when you right click a database you can back it up but not schedule backups so I wanted to look at perhaps setting up a mainteneace paln.
Regards..
Peter.
|||The maintenance plan UI in Management Studio uses SQL Agent to run a periodic job to perform the maintenance. SQL Agent is not included in SQL Server Express, so Management Studio Express does not include maintenance plan UI.
You should be able to view existing maintenance plans on SQL Server 2000 servers though. Is this not working for you?
|||Hi,
Yes I came to that conclusion as well after reviewing the comparisons between all versions of SQL 2005 on the Microsoft web site.
No there is no node to view any exisitng or setup any maintnence plans for my SQL2000 instance.
Regards..
Peter.
sqlFriday, March 23, 2012
Maintenance Cleanup task not functioning properly?
What part of this TSQL code does SQL Server 2005 Management Studio not understand?
EXECUTE master.dbo.xp_delete_file 0,N'\\pdxsql03\SQL Backup\POSSQL_Server',N'.bak',N'05/15/2006 08:09:37'
The database file backup extension is .bak and the file is older than one day which was specified.
It is just not deleting the file.
We have deleted the maintenance task and recreated it with no effect and this has been happening for over a month.
Any help here would be greatly appreciated.
Carl
carlt@.gicw.org
I've been having the same problem for over three months now and keep checking back here to see if there's been a fix....
|||http://blogs.msdn.com/sanchan/archive/2006/04/23/581640.aspx
This is addressed in SP1. Please look at the above blog for more information.
Gops Dwarak
|||The trick is to replace .bak with *.*
It definitely works. :-)
|||I tried to replace the extension "bak" with "*.*", "*" and ".*" I know this looks like the meeting of the disabled Smilie group, but you know what I mean. It definitely _DOESN′T_ delete any backups. However, when I execute the t-sql created by the maintenance Cleanup Task, it deletes the files.
Any suggestions?
|||Not working for me either. SP1 applied and all. Subdirectories for backups. .. trying to delete archived backups, in the form Filename.bak.7z. No worky worky!Please advise? (Read: How hard is it to implement a functioning XSP?!)|||
My solution was to take the T-SQL created by the cleanup task and modifying it slightly:
declare @.dt datetime
select @.dt=getdate()-5
EXECUTE master.dbo.xp_delete_file 0,N'E:\Backups',N'BAK',@.dt,1
The variable is used to check the age of the backup-files. In this case, all backups older than 5 days are deleted. The last Number (=1) gives the number of subdirectories to be searched in for .bak-files. AFAIK a maximum of 5 subdirs is supported.
Then you can take it and put it into an "execute SQL"-Task, take the package and schedule it or directly schedule it in the Job Scheduler of Management Studio as SQL-Statement
|||The workaround above may or may not work, depending on what the problem is.
To get to the bottom of the problem - what is the exact error that you are getting? We can then search if this is a known problem. There were number of issues with Cleanup task. A few were fixed in SP1, like Gops has mentioned, more were fixed in SP2 which is in the CTP release right now. If you can, please install SQL Server 2005 SP2 CTP December from here: http://www.microsoft.com/sql/ctp.mspx and let us know if the problem sitll exists.
Regards,
Maciek Sarnowicz
|||I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
Thanks,
-lance
|||There is an "off by one" bug using the time unit of measure in "Maintenance" and "Cleanup" tasks.
If you select "Weeks" you get "Days", with "Days" you get "Hours", and "Hours" blows the index.
The patching procedure is a little complicated. Read this:
http://blogs.msdn.com/psssql/archive/2007/04/06/post-sql-server-2005-service-pack-2-sp2-fixes-explained.aspx
|||-lance wrote:
I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
You are running SQL Server 2005 Service Pack 2 (9.00.3054.00).
You are running Windows Server 2003 Service Pack 1.
Hope this clears up your confusion.
Paul A. Mestemaker II
Program Manager
Microsoft SQL Server Manageability
http://blogs.msdn.com/sqlrem/
|||
I was also having a similar issue. First the cleanup task would just not delete any files no matter where I pointed it to. I originally had put “.trn” in the file extension box. I then removed the . and everything deleted correctly. The problem we then ran into was that it would only delete from the top level folder that we pointed to. In another blog I read that I must check the Include first-level subfolders box to delete from these sub folders. The problem is that this checkbox is nowhere to be found on the maintenance cleanup task dialog box. We do have service pack 2 loaded and most of the updates but….?
I finally just got the T-SQL statement and created my own job.
This is the original statement:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18'
Is simply added a 1 to the end of the statement and made it:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18',1
This job runs great and deletes all the files on level below the top level folder. I did try adding a 2 to see if it would let me delete further levels but it errors out. Hope this helps somebody!
Maintenance Cleanup task not functioning properly?
What part of this TSQL code does SQL Server 2005 Management Studio not understand?
EXECUTE master.dbo.xp_delete_file 0,N'\\pdxsql03\SQL Backup\POSSQL_Server',N'.bak',N'05/15/2006 08:09:37'
The database file backup extension is .bak and the file is older than one day which was specified.
It is just not deleting the file.
We have deleted the maintenance task and recreated it with no effect and this has been happening for over a month.
Any help here would be greatly appreciated.
Carl
carlt@.gicw.org
I've been having the same problem for over three months now and keep checking back here to see if there's been a fix....
|||http://blogs.msdn.com/sanchan/archive/2006/04/23/581640.aspx
This is addressed in SP1. Please look at the above blog for more information.
Gops Dwarak
|||The trick is to replace .bak with *.*
It definitely works. :-)
|||I tried to replace the extension "bak" with "*.*", "*" and ".*" I know this looks like the meeting of the disabled Smilie group, but you know what I mean. It definitely _DOESN′T_ delete any backups. However, when I execute the t-sql created by the maintenance Cleanup Task, it deletes the files.
Any suggestions?
|||Not working for me either. SP1 applied and all. Subdirectories for backups. .. trying to delete archived backups, in the form Filename.bak.7z. No worky worky!Please advise? (Read: How hard is it to implement a functioning XSP?!)
|||
My solution was to take the T-SQL created by the cleanup task and modifying it slightly:
declare @.dt datetime
select @.dt=getdate()-5
EXECUTE master.dbo.xp_delete_file 0,N'E:\Backups',N'BAK',@.dt,1
The variable is used to check the age of the backup-files. In this case, all backups older than 5 days are deleted. The last Number (=1) gives the number of subdirectories to be searched in for .bak-files. AFAIK a maximum of 5 subdirs is supported.
Then you can take it and put it into an "execute SQL"-Task, take the package and schedule it or directly schedule it in the Job Scheduler of Management Studio as SQL-Statement
|||The workaround above may or may not work, depending on what the problem is.
To get to the bottom of the problem - what is the exact error that you are getting? We can then search if this is a known problem. There were number of issues with Cleanup task. A few were fixed in SP1, like Gops has mentioned, more were fixed in SP2 which is in the CTP release right now. If you can, please install SQL Server 2005 SP2 CTP December from here: http://www.microsoft.com/sql/ctp.mspx and let us know if the problem sitll exists.
Regards,
Maciek Sarnowicz
|||I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
Thanks,
-lance
|||There is an "off by one" bug using the time unit of measure in "Maintenance" and "Cleanup" tasks.
If you select "Weeks" you get "Days", with "Days" you get "Hours", and "Hours" blows the index.
The patching procedure is a little complicated. Read this:
http://blogs.msdn.com/psssql/archive/2007/04/06/post-sql-server-2005-service-pack-2-sp2-fixes-explained.aspx
|||
-lance wrote:
I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
You are running SQL Server 2005 Service Pack 2 (9.00.3054.00).
You are running Windows Server 2003 Service Pack 1.
Hope this clears up your confusion.
Paul A. Mestemaker II
Program Manager
Microsoft SQL Server Manageability
http://blogs.msdn.com/sqlrem/
|||
I was also having a similar issue. First the cleanup task would just not delete any files no matter where I pointed it to. I originally had put “.trn” in the file extension box. I then removed the . and everything deleted correctly. The problem we then ran into was that it would only delete from the top level folder that we pointed to. In another blog I read that I must check the Include first-level subfolders box to delete from these sub folders. The problem is that this checkbox is nowhere to be found on the maintenance cleanup task dialog box. We do have service pack 2 loaded and most of the updates but….?
I finally just got the T-SQL statement and created my own job.
This is the original statement:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18'
Is simply added a 1 to the end of the statement and made it:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18',1
This job runs great and deletes all the files on level below the top level folder. I did try adding a 2 to see if it would let me delete further levels but it errors out. Hope this helps somebody!
Maintenance Cleanup task not functioning properly?
What part of this TSQL code does SQL Server 2005 Management Studio not understand?
EXECUTE master.dbo.xp_delete_file 0,N'\\pdxsql03\SQL Backup\POSSQL_Server',N'.bak',N'05/15/2006 08:09:37'
The database file backup extension is .bak and the file is older than one day which was specified.
It is just not deleting the file.
We have deleted the maintenance task and recreated it with no effect and this has been happening for over a month.
Any help here would be greatly appreciated.
Carl
carlt@.gicw.org
I've been having the same problem for over three months now and keep checking back here to see if there's been a fix....
|||http://blogs.msdn.com/sanchan/archive/2006/04/23/581640.aspx
This is addressed in SP1. Please look at the above blog for more information.
Gops Dwarak
|||The trick is to replace .bak with *.*
It definitely works. :-)
|||I tried to replace the extension "bak" with "*.*", "*" and ".*" I know this looks like the meeting of the disabled Smilie group, but you know what I mean. It definitely _DOESN′T_ delete any backups. However, when I execute the t-sql created by the maintenance Cleanup Task, it deletes the files.
Any suggestions?
|||Not working for me either. SP1 applied and all. Subdirectories for backups. .. trying to delete archived backups, in the form Filename.bak.7z. No worky worky!Please advise? (Read: How hard is it to implement a functioning XSP?!)|||
My solution was to take the T-SQL created by the cleanup task and modifying it slightly:
declare @.dt datetime
select @.dt=getdate()-5
EXECUTE master.dbo.xp_delete_file 0,N'E:\Backups',N'BAK',@.dt,1
The variable is used to check the age of the backup-files. In this case, all backups older than 5 days are deleted. The last Number (=1) gives the number of subdirectories to be searched in for .bak-files. AFAIK a maximum of 5 subdirs is supported.
Then you can take it and put it into an "execute SQL"-Task, take the package and schedule it or directly schedule it in the Job Scheduler of Management Studio as SQL-Statement
|||The workaround above may or may not work, depending on what the problem is.
To get to the bottom of the problem - what is the exact error that you are getting? We can then search if this is a known problem. There were number of issues with Cleanup task. A few were fixed in SP1, like Gops has mentioned, more were fixed in SP2 which is in the CTP release right now. If you can, please install SQL Server 2005 SP2 CTP December from here: http://www.microsoft.com/sql/ctp.mspx and let us know if the problem sitll exists.
Regards,
Maciek Sarnowicz
|||I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
Thanks,
-lance
|||There is an "off by one" bug using the time unit of measure in "Maintenance" and "Cleanup" tasks.
If you select "Weeks" you get "Days", with "Days" you get "Hours", and "Hours" blows the index.
The patching procedure is a little complicated. Read this:
http://blogs.msdn.com/psssql/archive/2007/04/06/post-sql-server-2005-service-pack-2-sp2-fixes-explained.aspx
|||-lance wrote:
I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
You are running SQL Server 2005 Service Pack 2 (9.00.3054.00).
You are running Windows Server 2003 Service Pack 1.
Hope this clears up your confusion.
Paul A. Mestemaker II
Program Manager
Microsoft SQL Server Manageability
http://blogs.msdn.com/sqlrem/
|||
I was also having a similar issue. First the cleanup task would just not delete any files no matter where I pointed it to. I originally had put “.trn” in the file extension box. I then removed the . and everything deleted correctly. The problem we then ran into was that it would only delete from the top level folder that we pointed to. In another blog I read that I must check the Include first-level subfolders box to delete from these sub folders. The problem is that this checkbox is nowhere to be found on the maintenance cleanup task dialog box. We do have service pack 2 loaded and most of the updates but….?
I finally just got the T-SQL statement and created my own job.
This is the original statement:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18'
Is simply added a 1 to the end of the statement and made it:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18',1
This job runs great and deletes all the files on level below the top level folder. I did try adding a 2 to see if it would let me delete further levels but it errors out. Hope this helps somebody!
Maintenance Cleanup task not functioning properly?
What part of this TSQL code does SQL Server 2005 Management Studio not understand?
EXECUTE master.dbo.xp_delete_file 0,N'\\pdxsql03\SQL Backup\POSSQL_Server',N'.bak',N'05/15/2006 08:09:37'
The database file backup extension is .bak and the file is older than one day which was specified.
It is just not deleting the file.
We have deleted the maintenance task and recreated it with no effect and this has been happening for over a month.
Any help here would be greatly appreciated.
Carl
carlt@.gicw.org
I've been having the same problem for over three months now and keep checking back here to see if there's been a fix....
|||http://blogs.msdn.com/sanchan/archive/2006/04/23/581640.aspx
This is addressed in SP1. Please look at the above blog for more information.
Gops Dwarak
|||The trick is to replace .bak with *.*
It definitely works. :-)
|||I tried to replace the extension "bak" with "*.*", "*" and ".*" I know this looks like the meeting of the disabled Smilie group, but you know what I mean. It definitely _DOESN′T_ delete any backups. However, when I execute the t-sql created by the maintenance Cleanup Task, it deletes the files.
Any suggestions?
|||Not working for me either. SP1 applied and all. Subdirectories for backups. .. trying to delete archived backups, in the form Filename.bak.7z. No worky worky!Please advise? (Read: How hard is it to implement a functioning XSP?!)
|||
My solution was to take the T-SQL created by the cleanup task and modifying it slightly:
declare @.dt datetime
select @.dt=getdate()-5
EXECUTE master.dbo.xp_delete_file 0,N'E:\Backups',N'BAK',@.dt,1
The variable is used to check the age of the backup-files. In this case, all backups older than 5 days are deleted. The last Number (=1) gives the number of subdirectories to be searched in for .bak-files. AFAIK a maximum of 5 subdirs is supported.
Then you can take it and put it into an "execute SQL"-Task, take the package and schedule it or directly schedule it in the Job Scheduler of Management Studio as SQL-Statement
|||The workaround above may or may not work, depending on what the problem is.
To get to the bottom of the problem - what is the exact error that you are getting? We can then search if this is a known problem. There were number of issues with Cleanup task. A few were fixed in SP1, like Gops has mentioned, more were fixed in SP2 which is in the CTP release right now. If you can, please install SQL Server 2005 SP2 CTP December from here: http://www.microsoft.com/sql/ctp.mspx and let us know if the problem sitll exists.
Regards,
Maciek Sarnowicz
|||I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
Thanks,
-lance
|||There is an "off by one" bug using the time unit of measure in "Maintenance" and "Cleanup" tasks.
If you select "Weeks" you get "Days", with "Days" you get "Hours", and "Hours" blows the index.
The patching procedure is a little complicated. Read this:
http://blogs.msdn.com/psssql/archive/2007/04/06/post-sql-server-2005-service-pack-2-sp2-fixes-explained.aspx
|||
-lance wrote:
I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
You are running SQL Server 2005 Service Pack 2 (9.00.3054.00).
You are running Windows Server 2003 Service Pack 1.
Hope this clears up your confusion.
Paul A. Mestemaker II
Program Manager
Microsoft SQL Server Manageability
http://blogs.msdn.com/sqlrem/
|||I was also having a similar issue. First the cleanup task would just not delete any files no matter where I pointed it to. I originally had put “.trn” in the file extension box. I then removed the . and everything deleted correctly. The problem we then ran into was that it would only delete from the top level folder that we pointed to. In another blog I read that I must check the Include first-level subfolders box to delete from these sub folders. The problem is that this checkbox is nowhere to be found on the maintenance cleanup task dialog box. We do have service pack 2 loaded and most of the updates but….?
I finally just got the T-SQL statement and created my own job.
This is the original statement:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18'
Is simply added a 1 to the end of the statement and made it:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18',1
This job runs great and deletes all the files on level below the top level folder. I did try adding a 2 to see if it would let me delete further levels but it errors out. Hope this helps somebody!
sqlMaintenance Cleanup task not functioning properly?
What part of this TSQL code does SQL Server 2005 Management Studio not understand?
EXECUTE master.dbo.xp_delete_file 0,N'\\pdxsql03\SQL Backup\POSSQL_Server',N'.bak',N'05/15/2006 08:09:37'
The database file backup extension is .bak and the file is older than one day which was specified.
It is just not deleting the file.
We have deleted the maintenance task and recreated it with no effect and this has been happening for over a month.
Any help here would be greatly appreciated.
Carl
carlt@.gicw.org
I've been having the same problem for over three months now and keep checking back here to see if there's been a fix....
|||http://blogs.msdn.com/sanchan/archive/2006/04/23/581640.aspx
This is addressed in SP1. Please look at the above blog for more information.
Gops Dwarak
|||The trick is to replace .bak with *.*
It definitely works. :-)
|||I tried to replace the extension "bak" with "*.*", "*" and ".*" I know this looks like the meeting of the disabled Smilie group, but you know what I mean. It definitely _DOESN′T_ delete any backups. However, when I execute the t-sql created by the maintenance Cleanup Task, it deletes the files.
Any suggestions?
|||Not working for me either. SP1 applied and all. Subdirectories for backups. .. trying to delete archived backups, in the form Filename.bak.7z. No worky worky!Please advise? (Read: How hard is it to implement a functioning XSP?!)|||
My solution was to take the T-SQL created by the cleanup task and modifying it slightly:
declare @.dt datetime
select @.dt=getdate()-5
EXECUTE master.dbo.xp_delete_file 0,N'E:\Backups',N'BAK',@.dt,1
The variable is used to check the age of the backup-files. In this case, all backups older than 5 days are deleted. The last Number (=1) gives the number of subdirectories to be searched in for .bak-files. AFAIK a maximum of 5 subdirs is supported.
Then you can take it and put it into an "execute SQL"-Task, take the package and schedule it or directly schedule it in the Job Scheduler of Management Studio as SQL-Statement
|||The workaround above may or may not work, depending on what the problem is.
To get to the bottom of the problem - what is the exact error that you are getting? We can then search if this is a known problem. There were number of issues with Cleanup task. A few were fixed in SP1, like Gops has mentioned, more were fixed in SP2 which is in the CTP release right now. If you can, please install SQL Server 2005 SP2 CTP December from here: http://www.microsoft.com/sql/ctp.mspx and let us know if the problem sitll exists.
Regards,
Maciek Sarnowicz
|||I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
Thanks,
-lance
|||There is an "off by one" bug using the time unit of measure in "Maintenance" and "Cleanup" tasks.
If you select "Weeks" you get "Days", with "Days" you get "Hours", and "Hours" blows the index.
The patching procedure is a little complicated. Read this:
http://blogs.msdn.com/psssql/archive/2007/04/06/post-sql-server-2005-service-pack-2-sp2-fixes-explained.aspx
|||-lance wrote:
I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
You are running SQL Server 2005 Service Pack 2 (9.00.3054.00).
You are running Windows Server 2003 Service Pack 1.
Hope this clears up your confusion.
Paul A. Mestemaker II
Program Manager
Microsoft SQL Server Manageability
http://blogs.msdn.com/sqlrem/
|||
I was also having a similar issue. First the cleanup task would just not delete any files no matter where I pointed it to. I originally had put “.trn” in the file extension box. I then removed the . and everything deleted correctly. The problem we then ran into was that it would only delete from the top level folder that we pointed to. In another blog I read that I must check the Include first-level subfolders box to delete from these sub folders. The problem is that this checkbox is nowhere to be found on the maintenance cleanup task dialog box. We do have service pack 2 loaded and most of the updates but….?
I finally just got the T-SQL statement and created my own job.
This is the original statement:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18'
Is simply added a 1 to the end of the statement and made it:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18',1
This job runs great and deletes all the files on level below the top level folder. I did try adding a 2 to see if it would let me delete further levels but it errors out. Hope this helps somebody!
Maintenance Cleanup task not functioning properly?
What part of this TSQL code does SQL Server 2005 Management Studio not understand?
EXECUTE master.dbo.xp_delete_file 0,N'\\pdxsql03\SQL Backup\POSSQL_Server',N'.bak',N'05/15/2006 08:09:37'
The database file backup extension is .bak and the file is older than one day which was specified.
It is just not deleting the file.
We have deleted the maintenance task and recreated it with no effect and this has been happening for over a month.
Any help here would be greatly appreciated.
Carl
carlt@.gicw.org
I've been having the same problem for over three months now and keep checking back here to see if there's been a fix....
|||http://blogs.msdn.com/sanchan/archive/2006/04/23/581640.aspx
This is addressed in SP1. Please look at the above blog for more information.
Gops Dwarak
|||The trick is to replace .bak with *.*
It definitely works. :-)
|||I tried to replace the extension "bak" with "*.*", "*" and ".*" I know this looks like the meeting of the disabled Smilie group, but you know what I mean. It definitely _DOESN′T_ delete any backups. However, when I execute the t-sql created by the maintenance Cleanup Task, it deletes the files.
Any suggestions?
|||Not working for me either. SP1 applied and all. Subdirectories for backups. .. trying to delete archived backups, in the form Filename.bak.7z. No worky worky!Please advise? (Read: How hard is it to implement a functioning XSP?!)
|||
My solution was to take the T-SQL created by the cleanup task and modifying it slightly:
declare @.dt datetime
select @.dt=getdate()-5
EXECUTE master.dbo.xp_delete_file 0,N'E:\Backups',N'BAK',@.dt,1
The variable is used to check the age of the backup-files. In this case, all backups older than 5 days are deleted. The last Number (=1) gives the number of subdirectories to be searched in for .bak-files. AFAIK a maximum of 5 subdirs is supported.
Then you can take it and put it into an "execute SQL"-Task, take the package and schedule it or directly schedule it in the Job Scheduler of Management Studio as SQL-Statement
|||The workaround above may or may not work, depending on what the problem is.
To get to the bottom of the problem - what is the exact error that you are getting? We can then search if this is a known problem. There were number of issues with Cleanup task. A few were fixed in SP1, like Gops has mentioned, more were fixed in SP2 which is in the CTP release right now. If you can, please install SQL Server 2005 SP2 CTP December from here: http://www.microsoft.com/sql/ctp.mspx and let us know if the problem sitll exists.
Regards,
Maciek Sarnowicz
|||I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
Thanks,
-lance
|||There is an "off by one" bug using the time unit of measure in "Maintenance" and "Cleanup" tasks.
If you select "Weeks" you get "Days", with "Days" you get "Hours", and "Hours" blows the index.
The patching procedure is a little complicated. Read this:
http://blogs.msdn.com/psssql/archive/2007/04/06/post-sql-server-2005-service-pack-2-sp2-fixes-explained.aspx
|||
-lance wrote:
I tried to load up SP2 (thought I had already) to test this with it...
well, I show I am running SP1 and though I tried to update I could not get everything to update. Either it had a newer version (according to the updater) or I was told that components must be updated together.
SELECT SERVERPROPERTY('ProductVersion') = 9.00.3054.00
select @.@.version = Microsoft SQL Server 2005 - 9.00.3054.00 (Intel X86) Mar 23 2007 16:28:52 Copyright (c) 1988-2005 Microsoft Corporation Enterprise Edition on Windows NT 5.2 (Build 3790: Service Pack 1)
So now the question is how do I even get it to upgrade to SP2?
You are running SQL Server 2005 Service Pack 2 (9.00.3054.00).
You are running Windows Server 2003 Service Pack 1.
Hope this clears up your confusion.
Paul A. Mestemaker II
Program Manager
Microsoft SQL Server Manageability
http://blogs.msdn.com/sqlrem/
|||
I was also having a similar issue. First the cleanup task would just not delete any files no matter where I pointed it to. I originally had put “.trn” in the file extension box. I then removed the . and everything deleted correctly. The problem we then ran into was that it would only delete from the top level folder that we pointed to. In another blog I read that I must check the Include first-level subfolders box to delete from these sub folders. The problem is that this checkbox is nowhere to be found on the maintenance cleanup task dialog box. We do have service pack 2 loaded and most of the updates but….?
I finally just got the T-SQL statement and created my own job.
This is the original statement:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18'
Is simply added a 1 to the end of the statement and made it:
EXECUTE master.dbo.xp_delete_file 0,N'D:\MSSQL\backup',N'trn',N'08/25/2007 13:49:18',1
This job runs great and deletes all the files on level below the top level folder. I did try adding a 2 to see if it would let me delete further levels but it errors out. Hope this helps somebody!