Click here to Skip to main content
15,914,111 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
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?
Posted
Updated 14-Jun-18 9:29am
Comments
Richard Deeming 14-Jun-18 14:37pm    
That's not how it works. We're happy to help you fix a problem with a script you've written; but nobody here is going to write the script for you.

Start by gathering more specific requirements than "fully automated restore script". Then read the documentation[^]. Then write the script.

1 solution

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900