automate a SQL query to run every month

12,472

For SQL Server Express, there are a few possibilities. Unfortunately none of them involve Management Studio:

  1. Use a combination of Windows Scheduler, sqlcmd.exe, and .bat files
  2. Use SQL Server Service Broker
  3. Use a Codeplex variation of SQL Agent
  4. Use SQL Scheduler (free download)
Share:
12,472

Related videos on Youtube

ItsPronounced
Author by

ItsPronounced

Constantly learning web application development. Self taught ASP.NET and php since 2003.

Updated on May 04, 2022

Comments

  • ItsPronounced
    ItsPronounced about 2 years

    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?

    • Matt
      Matt almost 14 years
      Why would you ever use a .bat when you can use a job that is built into SQL Server exactly for this purpose?