Click here to Skip to main content
13,663,987 members
Rate this:
 
Please Sign up or sign in to 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 14-Jun-18 4:17am
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

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Cookies | Terms of Service
Web06-2016 | 2.8.180810.1 | Last Updated 14 Jun 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100