June 11, 2012 at 8:04 am
Is there an easy way to drop a maintenance plan job? when doing it via SMO right clicking & selecting delete, I'm receiving 547:
errorTITLE: Microsoft SQL Server Management Studio
------------------------------
Drop failed for Job 'XXXXXX.Subplan_1'. (Microsoft.SqlServer.Smo)
------------------------------
ADDITIONAL INFORMATION:
An exception occurred while executing a Transact-SQL statement or batch. (Microsoft.SqlServer.ConnectionInfo)
------------------------------
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 DELETE statement conflicted with the REFERENCE constraint "FK_subplan_schedule_id". The conflict occurred in database "msdb", table "dbo.sysmaintplan_subplans", column 'schedule_id'.
The statement has been terminated.
The statement has been terminated. (Microsoft SQL Server, Error: 547)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.3042&EvtSrc=MSSQLServer&EvtID=547&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------
June 11, 2012 at 1:37 pm
You still want to keep the maintenance plan but not the job associated? What is the overall goal?
Viewing 2 posts - 1 through 1 (of 1 total)
You must be logged in to reply to this topic. Login to reply