Match usernames and login names when you restore to a new server
[From SQL Server Magazine]
When you move a backup of a SQL Server database from one server to another, you encounter some specific challenges. A common problem is that in the restore process, usernames and login names can be mismatched. Let's look at why usernames and login names are important, why mismatched names are a problem, and how to use a special procedure called sp_sidmap to avoid such problems.
This article continues at http://www.sqlmag.com/Articles/Index.cfm?ArticleID=25983.