DELETE 语句与 REFERENCE 约束"FK_ProductInfo_Category"冲突。该冲突发生于数据库"eshop",表"dbo.ProductInfo", column 'CategoryId'。
使用删除作业 Jobs
alter table ProductInfo
drop CONSTRAINT FK_ProductInfo_Category
之后发现 SqlServer维护计划想要删除时就不能删除了
此时再先执行下面的语句将维护计划的ID查出。
select * from sysmaintplan_plans
将查出的ID填入到下面几句话中的''中,并执行。
delete from sysmaintplan_log where plan_id = ''
delete from sysmaintplan_subplans where plan_id = ''
delete from sysmaintplan_plans where id = ''
但是这个方法不能确定是否已将所有的系统表中的关于这个维护计划的记录都删除