SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


SQL maintenance plans with 'Run as' user deleted from AD


SQL maintenance plans with 'Run as' user deleted from AD

Author
Message
alectronic
alectronic
Grasshopper
Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)

Group: General Forum Members
Points: 23 Visits: 9
Hi all,

first post here @_@

I have three maintenace plans - Full backup, Index Defrag, Index Rebuild ... all created under a AD user that got deleted in the meanwhile,

windows event log:
"SQL Server Scheduled Job 'Altiris DB - Index Defrag Task.Subplan' (0xD5D7F8561C6D194EB84A2757DD5E91B2) - Status: Failed - Invoked on: 2014-06-04 02:00:00 - Message: The job failed. The owner () of job Altiris DB - Index Defrag Task.Subplan does not have server access"

How do I modify these tasks that now error out when trying to run as scheduled?

Thanks!
Sreekanth B
Sreekanth B
SSChasing Mays
SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)

Group: General Forum Members
Points: 607 Visits: 2063
Have you tried changing the associated Jobs owner to 'sa'?
AlexSQLForums
AlexSQLForums
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1892 Visits: 2265
They are listed as separate jobs in SQL Agent Jobs.
You have to open each one and change the owner to a new AD user.

Alex S
alectronic
alectronic
Grasshopper
Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)

Group: General Forum Members
Points: 23 Visits: 9
1. in Jobs - job owner was already sa

2. in Jobs - when I changed from sa to my AD account only found 'NT AUTHORITY\SYSTEM'

...?
AlexSQLForums
AlexSQLForums
SSCommitted
SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)SSCommitted (1.9K reputation)

Group: General Forum Members
Points: 1892 Visits: 2265
alectronic (6/4/2014)
1. in Jobs - job owner was already sa

2. in Jobs - when I changed from sa to my AD account only found 'NT AUTHORITY\SYSTEM'

...?


If you're not on the latest SP for SQL 2005 it's a bug so you should upgrade.
http://support.microsoft.com/kb/969611

Alex S
alectronic
alectronic
Grasshopper
Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)

Group: General Forum Members
Points: 23 Visits: 9
Microsoft SQL Server Management Studio 9.00.4035.00
Microsoft Analysis Services Client Tools 2005.090.4035.00
Microsoft Data Access Components (MDAC) 2000.086.3959.00 (srv03_sp2_rtm.070216-1710)
Microsoft MSXML 2.6 3.0 5.0 6.0
Microsoft Internet Explorer 7.0.5730.13
Microsoft .NET Framework 2.0.50727.3655
Operating System 5.2.3790
Sreekanth B
Sreekanth B
SSChasing Mays
SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)SSChasing Mays (607 reputation)

Group: General Forum Members
Points: 607 Visits: 2063
At this point, I would just delete those existing 3 Maintenance plans and recreate them from scratch. :-) Cool
alectronic
alectronic
Grasshopper
Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)

Group: General Forum Members
Points: 23 Visits: 9
sreekanth bandarla (6/4/2014)
At this point, I would just delete those existing 3 Maintenance plans and recreate them from scratch. :-) Cool


After several tries, this is what I've done, will be running them overnight.
alectronic
alectronic
Grasshopper
Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)Grasshopper (23 reputation)

Group: General Forum Members
Points: 23 Visits: 9
PS

is there a way of comparing the two tasks, old versus newly created? I'm not sure I ~cloned~ them exactly.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search