how to make SQL Server change the status of a record automatically when a certain time arrives?

0

I'm doing a queue system and I need that after 30 minutes that the user entered the queue, the system changes its status from true to false but without any request to the server, it does so directly in the database, Can you?

    
asked by Anthony Medina 26.02.2017 в 01:16
source

1 answer

0

The simplest thing, in my opinion, to build a JOB that runs every 30 minutes, which would verify a "Date of entry to the queue" if it exceeded 30 minutes in relation to GETDATE (), perform the UPDATE that you mention.

Greetings ..//

    
answered by 07.03.2017 в 15:13