I have a database, with some tables in which, some fields have constraints. I have named some of these constraints myself, but some others, the names are generated automatically.
I want to select all these constrains. I am using
SELECT * FROM sys.objects
WHERE type_desc LIKE '%CONSTRAINT'
to get all the constraints. However there are a lot, and I cannot find them manually. These names are unpredictable with alphanumeric characters like PK__getParen__50EEF97F6BC33CCA
How do I separate constraints I have named myself and automatically named?