Click here to monitor SSC
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Backup whole instance, restore to a new server, with all the logins and permissions intact


Backup whole instance, restore to a new server, with all the logins and permissions intact

Author
Message
andrewchan0130
andrewchan0130
Forum Newbie
Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)Forum Newbie (2 reputation)

Group: General Forum Members
Points: 2 Visits: 8
Dear all,

This simple questions may have been asked by someone, but I've been looking through this forum for half an hour but still no clue.

The job is just as the title. there is an instance in a SQL server 2005, SQL01. We are going to migrate this whole instance to another SQL Server SQL02, while ensuring all the Logins and the linking to the database users and all the permissions are kept intact.

Please enlighten me

Thank you

Andrew
Renuka__
Renuka__
Ten Centuries
Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)Ten Centuries (1K reputation)

Group: General Forum Members
Points: 1024 Visits: 1370
Hi,

Script the logins from Master DB; Script the Jobs from MSDB;
Move the databases using either Detach\Attach or Backup\Restore to the new instance
Run the login script on Master
Create the jobs back using the script
If sny SSIS packages stored in MSDB, you may have to import them back.

Thank you

Renuka__
Grant Fritchey
Grant Fritchey
SSCoach
SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)SSCoach (17K reputation)

Group: General Forum Members
Points: 17576 Visits: 32259
You can backup & restore msdb between servers. Assuming the drives are the same, your Agent jobs should be ok. If the drives & whatnot are different, you'll need to go the scripting route in order to adjust the necessary scripts.

----------------------------------------------------
The credit belongs to the man who is actually in the arena, whose face is marred by dust and sweat and blood...
Theodore Roosevelt

The Scary DBA
Author of: SQL Server Query Performance Tuning and SQL Server Execution Plans
Product Evangelist for Red Gate Software
jackie.jones
jackie.jones
Valued Member
Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)

Group: General Forum Members
Points: 70 Visits: 117
Hi

We've just done this exact process, ie move all our DB's from 1 2005 box to another and I found a login script that worked very well. Not only does it create all the logins but it keeps the passwords too and it also sets the db access correctly.
I won't paste it on this forum as not sure what the protocols are? Are we allowed to do that?

The other replies are what we did too ie.
Stop the SQL service on old server
Detach DB's
Move the mdf and ldf files to new server
Attach DB's
Run login script
Create the jobs running in SQL Agent on the new server
Create new backup and maintenance plans and schedule them. Don't leave this for a week like we did before someone thought about it....
Go to the pub (this one is optional)
jackie.jones
jackie.jones
Valued Member
Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)Valued Member (70 reputation)

Group: General Forum Members
Points: 70 Visits: 117
Rather than post the script I've found the link - see below.
http://support.microsoft.com/kb/246133/

Hope it helps
Perry Whittle
Perry Whittle
SSCrazy Eights
SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)SSCrazy Eights (8.8K reputation)

Group: General Forum Members
Points: 8780 Visits: 16555
Grant Fritchey (5/12/2010)
You can backup & restore msdb between servers. Assuming the drives are the same, your Agent jobs should be ok. If the drives & whatnot are different, you'll need to go the scripting route in order to adjust the necessary scripts.


system database collations can be an issue here, ensure they match (I.e. Master, model, msdb). It's almost certain you will still end up amending some jobs.

-----------------------------------------------------------------------------------------------------------

"Ya can't make an omelette without breaking just a few eggs" ;-)
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search