I’ve created some foreign keys without an explicit name.
Then I’ve found SQL generated crazy names like FK__Machines__IdArt__760D22A7. Guess they will be generated with different names at different servers.
Is there any nice function to drop the unnamed FK constraints passing as arguments the tables and the fields in question?
There is not a built in procedure to accomplish this, but you can build your own using the information in the information_schema views.
Table based example