IF EXISTS (SELECT name FROM sysindexes WHERE name = 'IX_OrderGroupNote_OrderGroupId')
DROP INDEX IX_OrderGroupNote_OrderGroupId ON [dbo].[OrderGroupNote]
CREATE NONCLUSTERED INDEX [IX_OrderGroupNote_OrderGroupId]
ON [dbo].[OrderGroupNote]([OrderGroupId] ASC);
GO
Not working very well on SQL Azure. Need to add "." between "sys" and "indexes":
IF EXISTS (SELECT name FROM sys.indexes WHERE name = 'IX_OrderGroupNote_OrderGroupId')
DROP INDEX IX_OrderGroupNote_OrderGroupId ON [dbo].[OrderGroupNote]
CREATE NONCLUSTERED INDEX [IX_OrderGroupNote_OrderGroupId]
ON [dbo].[OrderGroupNote]([OrderGroupId] ASC);
GO
Production site was down while trying to find this issue :)
Oringal statement:
Not working very well on SQL Azure. Need to add "." between "sys" and "indexes":
Production site was down while trying to find this issue :)