I have created a few constraints on my table with a script without specifying the constraint name. As a result, I ended up having constraints like FK__DOC_OBGS___kntr___54E63309
for example.
Is it possible to drop that constraints without specifying the exact constraint name ?
For example, something like this (which doesn't work)
ALTER TABLE DOC_OBGS_10 DROP CONSTRAINT LIKE 'FK__DOC_OBGS___kntr%'
The problem is that we have a lot of databases with this table and I need to remove all the constraints from the tables, but apparently the name is different for each table.