Dropping duplicate|redundant Unique Constraint from FILESTREAM table

Posted by electricsk8 on Server Fault See other posts from Server Fault or by electricsk8
Published on 2011-01-03T20:13:49Z Indexed on 2011/01/03 20:55 UTC
Read the original article Hit count: 196

Filed under:

I have a table with a FILESTREAM column, and it has two unique constraints specified for the same FILESTREAM column, ie:

ALTER TABLE [dbo].[TableName] ADD CONSTRAINT [UQ_TableName_33C4988760FC61CA] UNIQUE NONCLUSTERED ([GUID_Column]); GO

ALTER TABLE [dbo].[TableName] ADD CONSTRAINT [UQ_TableName_33C49887145C0A3F] UNIQUE NONCLUSTERED ([GUID_Column]); GO

I'd like to drop one of the unique constraints, as they are duplicates. However, when I try and drop one of the two duplicate constraints, I receive the following error.

"A table with FILESTREAM column(s) must have a non-NULL unique ROWGUID column."

Anyone know how to remove one of the two constraints?

© Server Fault or respective owner

Related posts about filestream