automate a SQL query to run every month

前端 未结 3 1923
迷失自我
迷失自我 2020-12-20 18:08

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

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-20 18:53

    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.

提交回复
热议问题