需要自动化SQL Server还原脚本 [英] Need to automate SQL server restore script

查看:151
本文介绍了需要自动化SQL Server还原脚本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在各种测试服务器上恢复生产数据库的最新备份是我需要定期执行的常见活动之一。我需要一个完全自动化的SQL Server恢复脚本。任何人都可以帮忙吗?



我尝试过:



在各种测试服务器上恢复生产数据库的最新备份是我需要定期执行的常见活动之一。我需要一个完全自动化的SQL Server恢复脚本。任何人都可以提供帮助吗?

解决方案

您可以使用 SQLCMD ,请参见此示例:如何自动化测试服务器的SQL Server还原 [ ^ ]

Restoring the latest backups of Production databases on a various test servers is one of the frequent activity I need to perform on a regular basis. i need a Fully automated SQL Server Restore Script. Can anyone help on this?

What I have tried:

Restoring the latest backups of Production databases on a various test servers is one of the frequent activity I need to perform on a regular basis. i need a Fully automated SQL Server Restore Script. Can anyone help on this?

解决方案

You can use SQLCMD for this, see example here: How to Automate SQL Server Restores for a Test Server[^]


这篇关于需要自动化SQL Server还原脚本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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