Hi,Has anyone run the latest Ola Hallengren's IndexOptimize script (September 25)?I'm not sure why but when I run the job, I get the error "Executed as user: NT SERVICE\SQLSERVERAGENT. Incorrect syntax near 'E'. [SQLSTATE 42000] (Error 102). The step failed."sqlcmd -E -S $(ESCAPE_SQUOTE(SRVR)) -d DBA_Utils -Q "EXECUTE [dbo].[IndexOptimize] @Databases = 'USER_DATABASES', @UpdateStatistics = 'ALL', @StatisticsSample = 100, @LogToTable = 'Y'" -bIs there anything blatantly wrong with this command?Thanks,Mike
↧