x

Detach and attach system databases during upgrade

I am upgrading sql server 2005 to 2008R2 and I have used detach and attach to move databases of the application. Do I also need to detach and attach the system databases too.
more ▼

asked Apr 06, 2012 at 01:02 PM in Default

Chitrarekha gravatar image

Chitrarekha
140 33 42 43

Good point Shawn, I have never looked into that, I always use the scripts to move it.
Apr 06, 2012 at 03:36 PM Chris shaw
(comments are locked)
10|1200 characters needed characters left

2 answers: sort voted first
you cannot attach or restore backups of the system databases from a lower version of SQL Server to a higher version. Your easiest option is probably to script everything out (logins, roles, Agent jobs, etc).
more ▼

answered Apr 06, 2012 at 03:31 PM

Shawn_Melton gravatar image

Shawn_Melton
5.4k 20 21 29

(comments are locked)
10|1200 characters needed characters left

The system databases contain a lot of information, however there is a little more information that we need to know before we can point you in the right direction.

When you did the upgrade, how did you do it? Did you run the Upgrade path from the disk or did you put it on a new server, in a side by side mode.

Some of the things that you could lose depending on how you upgraded could include logins, jobs, linked servers, SQLMail configurations. But if you did the upgrade path and detached and attached so that you protect the database then you may not need to do anything outside test and monitor. It may help us a lot if you had a check list that you could post.
more ▼

answered Apr 06, 2012 at 02:58 PM

Chris shaw gravatar image

Chris shaw
530 2 3 5

I am working on a side by side upgrade. I have built a new server where I have sqlserver 2008R2 installed. I have detached and attached the application databases. Is there a way to automatically recreate the logins? At this time I have manually recreated the logins.
Apr 06, 2012 at 03:20 PM Chitrarekha

There are a couple ways that you can move the logins, the way that I perfer to use the revlogin sp. You can find more information here.

http://support.microsoft.com/kb/246133
Apr 06, 2012 at 03:34 PM Chris shaw
(comments are locked)
10|1200 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

New code box

There's a new way to format code on the site - the red speech bubble logo will automatically format T-SQL for you. The original code box is still there for XML, etc. More details here.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

SQL Server Central

Need long-form SQL discussion? SQLserverCentral.com is the place.

Topics:

x69

asked: Apr 06, 2012 at 01:02 PM

Seen: 1179 times

Last Updated: Apr 07, 2012 at 03:21 AM