bibi92
asked on
error script track sp_configure
Hello,
The error Incorrect syntax near '>'. is returned when I executed
How can I resolve?
Thanks
Regards
The error Incorrect syntax near '>'. is returned when I executed
SELECT @LastUpdateTime = DATEADD (HOUR, @hours, @LastUpdateTime);
SELECT @LastUpdateTime = DATEADD (MINUTE, @minutes, @LastUpdateTime);
SELECT @LastUpdateTime = DATEADD (SECOND, @seconds, @LastUpdateTime);
SELECT @LastUpdateTime = DATEADD (MILLISECOND, @milliseconds, @LastUpdateTime);
SELECT @LastUpdateTime AS 'sp_configure options last updated';
IF EXISTS
(select @LastUpdateTime > DATEADD(DAY, -1, GETDATE()))
BEGIN
RAISERROR('Error 1, level 11', 11, 1)
RETURN
END
How can I resolve?
Thanks
Regards
ASKER
Ok, the syntax error is resolved but the raiserrror doesn't work.
Thanks
Thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Try this:
Open in new window