Quantcast
Channel: SQL Server High Availability and Disaster Recovery forum
Viewing all articles
Browse latest Browse all 4532

SQL2012 System Databases Restore on a different environment

$
0
0

So While I was playing around I wondered if it was possible for me to setup a similar version of SQL 2012 on a different environment and restore it quickly.  

Master Env

SQL 2012  - 3 databases , 2 SSIS packages , 2 Sql Agent jobs and 1 report.

The idea would be to copy this on another Server altogether.

Slave Env

So the first thing I thought was the system database should go across before all else.  Now it states that both versions have to be the same which I confirmed using;

Use Master

Go

SELECT


SERVERPROPERTY

('ProductVersion ')ASProductVersion,


SERVERPROPERTY

('ProductLevel')ASProductLevel,


SERVERPROPERTY

('ResourceVersion')ASResourceVersion,


SERVERPROPERTY

('ResourceLastUpdateDateTime')ASResourceLastUpdateDateTime,


SERVERPROPERTY

('Collation')ASCollation;

Both showing the same.    Having backed up both system databases on both sides the restoring of the model and msdb databases where straight forward.

The master was a different ball game and is one I still cant get past

1. Stopped the SQL SERVER on the Slave Env

2. Open Command shell

3. Net Start MSSQLServer /m”SQLCMD”

4. sqlcmd -S. -E

5. RESTORE DATABASE master FROM DISK = 'D:\SQL\Backups\master.bak' WITH REPLACE

Go

what this will do is restore the master database from the live to the slave and this is where the problems begin because once you do that restart the SQL server and get out of single user mode you cant logon .

Question

Assuming the Master has different windows logons to the Slave is there any way once this restore has been done to negate this or do you  create a user straight after the restore?

Also with ReportingServices and Integrated Services are they straight forward Db restores ?

Any Help one this would be great!!

As I really want to know how quickly I can jump from one environment to another.

 


Viewing all articles
Browse latest Browse all 4532

Trending Articles



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