Incorrect syntax near the keyword ‘FOREIGN’. MSSQL synatx

ALTER TABLE Project DROP FOREIGN KEY FK_Project_Template;
GO

SHOULD BE

ALTER TABLE Project DROP CONSTRAINT FK_Project_Template;
GO

One thought on “Incorrect syntax near the keyword ‘FOREIGN’. MSSQL synatx”

Leave a Reply

Your email address will not be published.