Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我创建了一个需要 3 个参数的存储过程
数据库名称备份类型备份位置
如果我运行这个存储过程,它会创建备份。我想知道硬件为此编写一个批处理文件并安排一个作业在指定时间运行。我正在使用 sqlserver2008。
看看这篇文章:
sqlcmd 实用程序
您可以在批处理文件中使用 sqlcmd 实用程序来执行您的过程。
你可以参考这个微软链接:这是一个带有存储过程和批处理文件示例的 microsift 链接
http://support.microsoft.com/kb/2019698