I have a simple SQL query that updates some date fields in a record, on a SQL Express instance.
I'd like to have it run automatically every month. What is the best way of accomplishing this in SQL Server 2005 Express using the Management Studio?
I have a simple SQL query that updates some date fields in a record, on a SQL Express instance.
I'd like to have it run automatically every month. What is the best way of accomplishing this in SQL Server 2005 Express using the Management Studio?
For SQL Server Express, there are a few possibilities. Unfortunately none of them involve Management Studio:
Create a job with monthly schedule in Sql Agent and assign a T-Sql task to it with this query.
you can make use of bat file to connect to your sql express using sqlcmd.exe and then set that bat file in windows scheduler to run it at desired time of interval.
© 2022 - 2024 — McMap. All rights reserved.