每月自动运行一个 SQL 查询 [英] automate a SQL query to run every month

查看:33
本文介绍了每月自动运行一个 SQL 查询的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个简单的 SQL 查询,用于更新 SQL Express 实例上记录中的某些日期字段.

I have a simple SQL query that updates some date fields in a record, on a SQL Express instance.

我想让它每个月自动运行.使用 Management Studio 在 SQL Server 2005 Express 中完成此操作的最佳方法是什么?

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?

推荐答案

对于 SQL Server Express,有几种可能性.不幸的是,它们都不涉及 Management Studio:

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

  1. 结合使用 Windows调度程序、sqlcmd.exe 和 .bat文件
  2. 使用SQL Server Service Broker
  3. 使用 SQL 代理的 Codeplex 变体
  4. 使用 SQL 调度程序(免费下载)
  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)

这篇关于每月自动运行一个 SQL 查询的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆