I have a UNIQUE NONCLUSTERED INDEX on my Azure Database, code is below...
CREATE UNIQUE NONCLUSTERED INDEX [IX] ON [dbo].[TableName]
(
[Username] ASC,
[GUID] ASC
)WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, DROP_EXISTING = OFF, ONLINE = OFF) ON [PRIMARY]
For some reason there are duplicate values in the table on Username and GUID. How is that possible if this index exist?
Can you turn it off and then on to add a new record with the same Username and GUID?
Getting the below error...
Cannot insert duplicate key row in object 'dbo.Tablename' with unique index