January 23, 2012 at 11:38 pm
Good Day,
I tried to delete a job created by the maintenance plan , but it displayed the message
The "Delete " statement conflickted with the reference constraint "FK_Job_plan_id". Surely one should be able to delete jobs when needed . Is this a recognized bug in SQL Server ? This reminds me of SQL Server 2005 and one of the main reasons we are not using Maintenance Plans, but using our own scripts. Any ideas ?
January 24, 2012 at 3:21 am
Check their may be other jobs associated with this job. try deleting maintenance plan instead of its job
Thanks,
GG;-)
January 24, 2012 at 5:11 am
January 24, 2012 at 7:44 am
:hehe:
In my case it was aspnet_membership, and aspnet_usersinroles. From management studio, right click --> edit, and toward the bottom where it sets the constraints, add "on delete casecade" and execute just the alter. also, you will want to run the same thing with "on update cascade". This fixed my problem in no time flat.
January 24, 2012 at 8:55 am
You will have to delete some records from the sysmaintplans_subplan to delete the jobs. Take a look at this link
http://saveadba.blogspot.com/2011/12/sql-server-msg-547-level-16-state-0.html
Blog
http://saveadba.blogspot.com/
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply