专项维护计划查询
维护计划的创建很容易。每个机构只需使用维护计划向导即可。 但在这种情况下,我想编写程序来使用查询创建维护计划。 我的计划是重复完整备份。我使用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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
维护计划生成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
当您想要定期进行完整备份 *作业*时,没有必要使用 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.