SyntaxFix
Write A Post
Hire A Developer
Questions
If you're looking to store the information in a table, you need to use an INSERT or an UPDATE statement. It sounds like you need an UPDATE statement:
UPDATE SomeTable SET SomeDateField = GETDATE() WHERE SomeID = @SomeID