I have table prsl which have auto generated name of the constraint. I want to search where the Database kept these name. ALTER TABLE [dbo].[PRSL] DROP CONSTRAINT [PK__PRSL__1C1D47DC0BF1ACC7]
Actually, i want to drop these constraints dynamically. For Example
SELECT * FROM sys.indexes WHERE object_id = OBJECT_ID(N'[dbo].[PRSL]') drop all the constraint which are on a table.
Drop constraint 'when found'