专项维护计划查询

发布于 2024-12-23 08:41:17 字数 195 浏览 5 评论 0原文

维护计划的创建很容易。每个机构只需使用维护计划向导即可。 但在这种情况下,我想编写程序来使用查询创建维护计划。 我的计划是重复完整备份。我使用Profiler来检测相关查询,但检测到的查询没有用。我应该怎么办 ? 我正在使用 Qt 编写程序

The Maintenance Plan creation is easy. Every body simply use the Maintenance Plan Wizard.
But in this case I want to write program to create a Maintenance Plan using Query. My plan is Recurrence Full Backup. I used Profiler to detect related queries but the detected queries was not useful. What should I do ? I'm writing my program with Qt

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

狼亦尘 2024-12-30 08:41:17

维护计划生成SSIS包。尝试在 BIDS 中打开它并检查使用的组件和代码。

如果您想以编程方式生成 SSIS 包,有一个好的开始: http://msdn .microsoft.com/en-us/library/ms345167.aspx

Maintenance Plan generates SSIS Package. Try to open it in BIDS and check used components and code.

If you want to generate SSIS package programmatically there is a good start: http://msdn.microsoft.com/en-us/library/ms345167.aspx

子栖 2024-12-30 08:41:17

当您想要定期进行完整备份 *作业*时,没有必要使用 SSIS 包。您只需创建一个作业,然后在其步骤部分中创建一个新的作业步骤并选择(Transact-SQL)作为其类型,然后在该步骤中编写备份脚本之后,您应该设置计划以使您的工作重复出现。您可以通过右键单击作业脚本来获取它。现在您有了一个不使用 SSIS 编程的重复作业脚本。

When you want to have a recurring FULL BACKUP *job*, it's not necessary to use SSIS packages. you can simply create a job and in its Steps section create a new job step and select (Transact-SQL) for its type and then write a back up script in that step after that you should set the Schedules to make your job recurring. You can have the script of your job by right click on it. now you have a recurring job script without using SSIS programming.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文