I can drop a table if it exists using the following code but do not know how to do the same with a constraint:
IF EXISTS(SELECT 1 FROM sys.objects WHERE OBJE
ALTER TABLE [dbo].[TableName] DROP CONSTRAINT FK_TableName_TableName2