Restore MSSQL database using batch script


If you are looking for a tool which can restore the MS SQL DB backup from the production environment to the development environment, this script is just the one that you are after.

In my example, the script does the following things:

1) Copy of the latest pro db backup to local.

2) Close all connections of the dev db that is going to be replaced.

3) Restore the pro db to dev db.

4) (Optional) Configure the restored db to meet the dev environment needs. (In my case, the db is used by the software named TechnologyOne).

The script can be downloaded from here:

Image

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s