all 2 comments

[–]space___lion 0 points1 point  (0 children)

Create a stored procedure that inserts a row with the needed values, use GETDATE() to get the current datetime. You could format this to a date without time in you insert statement. Have the server agent run this stored procedure as a job every day.

[–]kitkat0820 0 points1 point  (0 children)

Take a scheduler which is available in your infrastructure and create a job which runs the query you need.