• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 340
  • Last Modified:

SQL 2008 users migration

I have to move a database server running SQL 2008 to a new hardware server what is the best process to import all users and configs to the new server. the database on the server will be moved by moving the files and reattaching the DB, however before I do this I want to restore a backup on the new server and test functionality with things like report services that uses IIS site for reports and so on. I would like to make sure I have all the required users imported and any configs from the current production system.
1 Solution
ibrahim52Team LeaderCommented:
Simply just move .mdf & log file to the new server but just make sure of SQL Server edition, it should be similar on your new server as well.
atorexAuthor Commented:
Are you saying that the production MDF/LDF will contain all users for that SQL server?
is there a way I can import users for testing as I cant copy the current mdf during operations and due to size cant take the server down multiple times for the time I will need to copy.
Steve WalesSenior Database AdministratorCommented:
Just moving the mdf/ldf of your user database will move the users of the database, but not the instance logins.

To move your instance logins, Microsoft has a KB article explaining exactly how to do it:

However, after doing that, you will likely have a disconnect between logins and users.

Fixing orphaned users is detailed here:

I recently had to move a bunch of databases between servers.  After installing SQL Server on the new machine, I recreated my logins, restored the databases from backups taken on the source machine and fixed my orphaned users and everything came up fine.
atorexAuthor Commented:
I have a restore running now, I will follow the provided steps and see what I come up with.
my only user concern is a user IIS uses to retrieve reporting data these reports have to be done each day for upper management and I want to make double sure it will work, thats why I'm a little freakish about it.
Alpesh PatelAssistant ConsultantCommented:
using the SSIS you can move lot of SQL Objects like Database, Logins, Error Log, SQL Jobs, System Master SPs etc.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Has Powershell sent you back into the Stone Age?

If managing Active Directory using Windows Powershell® is making you feel like you stepped back in time, you are not alone.  For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now