SyntaxFix
Write A Post
Hire A Developer
Questions
Perhaps something more like this?
declare @UpdateTime datetime set @UpdateTime = getutcdate() update Table1 set AlertDate = @UpdateTime where AlertDate is null select ID from Table1 where AlertDate = @UpdateTime