I need to change the type of index from "Unique Key" to "index". I`ve spent 2 days trying to drop and recreate it. Unfortunately, there are a lot of dependencies and the only way to fix my issue is to modify the existing index. SSMS visual editor allows me to change type however I ought to find out how to make it programmatically.
It is really bad idea to use something like UPDATE sys.key_constraints SET type = 'UQ' WHERE ...
Such a solution is not working properly.
I would appreciate any help!