[카테고리:] SQL

  • SQL Server 유지 관리 계획 작업 삭제 시 REFERENCE 제약 조건 충돌 에러 해결 방법

    SQL Server Management Studio 을 사용하다 유지 관리 계획의 작업을 삭제를 하려고 하면 아래와 같은 에러 메시지가 나옵니다 DELETE 문이 REFERENCE 제약 조건 “FK_subplan_job_id”과(와) 충돌했습니다. 데이터베이스 “msdb”, 테이블 “dbo.sysmaintplan_subplans”, column ‘job_id’에서 충돌이 발생했습니다.문이 종료되었습니다. (Microsoft SQL Server, 오류: 547) 도움말을 보려면 다음을 클릭하십시오: http://go.microsoft.com/fwlink?ProdName=Microsoft%20SQL%20Server&ProdVer=13.00.5026&EvtSrc=MSSQLServer&EvtID=547&LinkId=20476 해당 작업에 연결된 유지보수 계획이 먼저 삭제되어야 하는데, 이 과정에서 “dbo.sysmaintplan_subplans”…

  • Resolving REFERENCE Constraint Conflict Error When Deleting SQL Server Maintenance Plan Jobs

    When attempting to delete a job in a SQL Server maintenance plan, you may encounter an error message similar to the following: 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) This error message indicates…