Hi,
I am trying to remove an old reference to a old maint plan that is no longer used on a new sql 2005 system.
When I try to delete the plan I get the following error
Drop failed for Job 'User DB Maintenance Plan'. (Microsoft.SqlServer.Smo)
The DELETE statement conflicted with the REFERENCE constraint "FK_subplan_job_id". The conflict occurred in database "msdb", table "dbo.sysmaintplan_subplans", column 'job_id'.
The statement has been terminated. (Microsoft SQL Server, Error: 547)
I run the following script to try to find the problem row in the table.
Use MSDB
GO
Select * from sysmaintplan_subplans
GO
But this returns rows all with long CIDS. In the subplan_id column. So I dont know which row to delete.
So any help, with a better script to get more meaniful results will be much appreciated.
Thanks,
Paul
If aint broken, dont try n fix it!!!!!
I am trying to remove an old reference to a old maint plan that is no longer used on a new sql 2005 system.
When I try to delete the plan I get the following error
Drop failed for Job 'User DB Maintenance Plan'. (Microsoft.SqlServer.Smo)
The DELETE statement conflicted with the REFERENCE constraint "FK_subplan_job_id". The conflict occurred in database "msdb", table "dbo.sysmaintplan_subplans", column 'job_id'.
The statement has been terminated. (Microsoft SQL Server, Error: 547)
I run the following script to try to find the problem row in the table.
Use MSDB
GO
Select * from sysmaintplan_subplans
GO
But this returns rows all with long CIDS. In the subplan_id column. So I dont know which row to delete.
So any help, with a better script to get more meaniful results will be much appreciated.
Thanks,
Paul
If aint broken, dont try n fix it!!!!!