Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12554

DBCC - anyone done this? Connect to server, backup and restore on another server

$
0
0

I have not used DBCC but I knew of it and roughly what it would let me do.  I have 4 or 5 databases that exist in two different environments, one live for users and one for development.

So now Im thinking about building a script that does the following for each of the DB's I want restored on my testing server.

- Connect to DB server (live)
- Perform a "copy only" backup
- Copy the backup to a dev server folder
- Connect to dev DB server and do a restore using the backup we just took

Anyone done something like this and care to share some tips?


Viewing all articles
Browse latest Browse all 12554

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>