Wednesday, July 13, 2011

What is refreshing in SQLServer?

What is refreshing in SQLServer?

You most likely refresh a development or test environment frequently with a recent production environment backup. Depending on what you are testing or developing, current data may be critical to ensuring your results are valid. Creating an automated task to restore the database regularly (weekly, daily or even several times a day as needed) will save lots of time and guarantee that you do not miss any necessary restore steps.
At a high level, you should complete the following steps to refresh a test or development environment using backup and restore as the refresh method:
1. Back up the production database: You should already have a scheduled process that creates daily full backups, so use the backup files that are already in place.
2. Copy all the users in test environment to some other table in master data base
2. Kill connections to database: In order to do a restore, there can be no active connections to the database. All connections to the database must be killed before you start the restore.
3. Restore the database: Issue the restore command.
4. Re-link users and logins: Users and logins are associated by SIDs (security identifiers). These may not be the same on your production and test environments, so you will need to re-lid

No comments:

Post a Comment