sql server - Update column value in SQL without user interaction -


i want update column value every day @ 12 in table without user interaction.

example: have column status active , expired possible values.

now everyday @ 12 am, column dateregistered checked. if dateregistered less current date, update status a (for active), , e (expired) otherwise.

is there way can in sql server 2014 without user interaction?

you can create stored procedure , schedule same in sql job under sql server agent run @ every day 12am.

please refer msdn link same.

https://msdn.microsoft.com/en-us/library/ms191439.aspx

enter image description here


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -