How do I query the database for all types of constraints such as Primary Key,Foreign Key, Unique Key, and Default Constraint, and rename its system generate name to a name in following format:
- PK_ColumnName1_ColumnName2
- FK_ColumnName1
- UK_ColumnName1_ColumnName2
- DF_ColumnName1