I have deleted a maintenance plan it appears that the job for that maintence plan has been left behind. When I attempt to delete the job I get thebelow message. Any idea how to remove this orphaned job?
TITLE: Microsoft SQL Server Management Studio
------------------------------
Drop failed for Job 'User DB Maintenance Plan'. (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 statement has been terminated. (Microsoft SQL Server, Error: 547)
For help, click: http://go.microsoft.com/fwlink?ProdName=Microsoft+SQL+Server&ProdVer=09.00.2047&EvtSrc=MSSQLServer&EvtID=547&LinkId=20476
------------------------------
BUTTONS:
OK
------------------------------