Showing posts with label bug. Show all posts
Showing posts with label bug. Show all posts

Friday, March 30, 2012

Maintenance Plan File Deletion Bug

I have a maintenance plan set to delete files after 1 week. Instead it is deleting everthing older then 1 day. When I view the tsql in the designer, the xp_delete_file string looks correct. Is there anyway to see the exact xp_delete_file string that is actually being executed at run time?

I found the problem.

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

What service pack you are on?

There were maintenane related bugs in SP2 so that MS released hot fix on 03/05/2007.

Check the hot fix if you are already on SP2 applied before the hot fix release. If you are on SP1 apply the SP2 down loaded after 03/06/2007 which is hot fix included.

|||

I found out what the problem is.

There is an "off by one" bug where the wrong time unit of measure is being used.

"Hours" are being converted to "Days", Days" are being converted to "Hours", and "Hours" will blow with an invalid index.

This problem exists for "Maintenance Cleanup" tasks and "Clean Up History" tasks.

The fix is a little complicated because there are two versions of sp2 out there.

Read this to figure out the proper fix:

http://blogs.msdn.com/psssql/archive/2007/04/06/post-sql-server-2005-service-pack-2-sp2-fixes-explained.aspx

Wednesday, March 28, 2012

Maintenance Plan bug on SQL Server 2005

Hello, everyone:

I have a strange trouble on SQL Server 2005 on XP/local and Win 2003/server. When I connect local database and create a backup plan named by "backup plan", I can see the name under "maintenance plan" and "Jobs" under SQL Server Agent. But if I connect to server database and do the samething, I cannot see the name under "maintenance plan". I can see the name under "Jobs" under SQL Server Agent. But cannot delete this job, and message:

Drop failed for job "Backup Plan".(Microsoft.SqlServer.Smo).

Did someone meet this bug and have suggestions?

Thanks

ZYTPermissions? Do you have the same permissions to the server as you do to your local SQL Server?|||Hi, Pootle:

Thanks for reply.

I have sysadmin permissions to the server.

ZYT

Permissions? Do you have the same permissions to the server as you do to your local SQL Server?|||Hi, Pootle:

The server is the remote one that our company just got from someone else. I login by "Remote Desktop Connection" and check SQL Server. From Start - Programs - SQL Server 2005, there is only "Configuration Tools" available, no other componences like "SQL Server Management Stadio". This is first time I sam and confused. What was happened?

When I connect server from SQL Server, I can all tables and stored procedrues.

Thanks

ZYT

Permissions? Do you have the same permissions to the server as you do to your local SQL Server?|||As I remember, there was a bug in SQL 2005 SP2 that affected Maintenance plans. Check to see what hotfixes are available.

Wednesday, March 21, 2012

Maintenance Cleanup Task - new years bug?

I have a couple of Maintenance tasks running to clean up old files older tha
n
2 days. It has been working fine for the last week, but I checked today and
I
still have files from december in there. Is there some sort of bug with the
date passing newyears and not removing files from the previous year'TJ
As I understood (i could be wrong) this task is still in CTP SP2 and gave
not released yet.
"TJ" <TJ@.discussions.microsoft.com> wrote in message
news:2D4B9235-D132-4061-9726-C7618B1A331B@.microsoft.com...
>I have a couple of Maintenance tasks running to clean up old files older
>than
> 2 days. It has been working fine for the last week, but I checked today
> and I
> still have files from december in there. Is there some sort of bug with
> the
> date passing newyears and not removing files from the previous year'

Maintenance Cleanup Task - new years bug?

I have a couple of Maintenance tasks running to clean up old files older than
2 days. It has been working fine for the last week, but I checked today and I
still have files from december in there. Is there some sort of bug with the
date passing newyears and not removing files from the previous year?
TJ
As I understood (i could be wrong) this task is still in CTP SP2 and gave
not released yet.
"TJ" <TJ@.discussions.microsoft.com> wrote in message
news:2D4B9235-D132-4061-9726-C7618B1A331B@.microsoft.com...
>I have a couple of Maintenance tasks running to clean up old files older
>than
> 2 days. It has been working fine for the last week, but I checked today
> and I
> still have files from december in there. Is there some sort of bug with
> the
> date passing newyears and not removing files from the previous year?