I got couple of errors in the script
1.)
GO
DROP INDEX [IX_DSC_Manufacturer_Name]
ON [dbo].[DSC_Manufacturer];
Error:
Msg 3723, Level 16, State 6, Line 1
An explicit DROP INDEX is not allowed on index 'dbo.DSC_Manufacturer.IX_DSC_Manufacturer_Name'. It is being used for FOREIGN KEY constraint enforcement.
2.)
GO
CREATE UNIQUE NONCLUSTERED INDEX [IX_DSC_Manufacturer_Name]
ON [dbo].[DSC_Manufacturer]([name] ASC) WITH (ALLOW_PAGE_LOCKS = ON, ALLOW_ROW_LOCKS = ON, PAD_INDEX = OFF, SORT_IN_TEMPDB = OFF, DROP_EXISTING = OFF, IGNORE_DUP_KEY = OFF, STATISTICS_NORECOMPUTE = OFF, ONLINE = OFF, MAXDOP = 0);
Error:
Msg 1913, Level 16, State 1, Line 1
The operation failed because an index or statistics with name 'IX_DSC_Manufacturer_Name' already exists on table 'dbo.DSC_Manufacturer'.
Thanks
|