B2017-062 needed to remove square brackets from the IF NOT EXITSTS statement for IX_contentsLastChanged

This commit is contained in:
John Jenko 2017-03-23 17:41:02 +00:00
parent 156888f6dc
commit c4509c6a87

View File

@ -8541,7 +8541,7 @@ END
GO
/****** Object: Index [IX_contentsLastChanged] Script Date: 3/21/2017 11:24:00 AM ******/
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE name = '[IX_contentsLastChanged]')
IF NOT EXISTS (SELECT * FROM dbo.sysindexes WHERE name = 'IX_contentsLastChanged')
BEGIN
CREATE NONCLUSTERED INDEX [IX_contentsLastChanged] ON [dbo].[tblContents]
(
@ -13079,8 +13079,8 @@ BEGIN TRY -- Try Block
set nocount on
DECLARE @RevDate varchar(255)
DECLARE @RevDescription varchar(255)
set @RevDate = '3/22/2017 9:30AM'
set @RevDescription = 'Added IX_contentsLastChanged Index. Speeds up session queries'
set @RevDate = '3/23/2017 1:20PM'
set @RevDescription = 'Fixed the update of IX_contentsLastChanged Index procedure.'
Select cast(@RevDate as datetime) RevDate, @RevDescription RevDescription
PRINT 'SQL Code Revision ' + @RevDate + ' - ' + @RevDescription
IF( @@TRANCOUNT > 0 ) COMMIT