Re: SQL User SID format?
- From: "JamesB" <james@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Thu, 5 Apr 2007 09:11:14 +0100
"Laurentiu Cristofor [MSFT]" <Laurentiu.Cristofor@xxxxxxxxxx> wrote in message news:%233QKDTudHHA.2128@xxxxxxxxxxxxxxxxxxxxxxx
When you move databases to another server, you can remap users to logins using sp_change_users_login - however, this will only work for SQL logins/users. Starting with SQL Server 2005 SP2, we have added the capability to remap a user to a login with new ALTER USER syntax - I mentioned this at: http://blogs.msdn.com/lcris/archive/2007/02/19/sql-server-2005-some-new-security-features-in-sp2.aspx. The new ALTER USER syntax works for remapping both SQL and Windows logins/users, so it should allow you to do what you need in the easiest way.
Thanks Laurentiu, that ALTER USER command looks useful.
James
.
- References:
- SQL User SID format?
- From: JamesB
- Re: SQL User SID format?
- From: Laurentiu Cristofor [MSFT]
- Re: SQL User SID format?
- From: JamesB
- Re: SQL User SID format?
- From: Laurentiu Cristofor [MSFT]
- SQL User SID format?
- Prev by Date: hooking into sql server file I/O -- file level encryption
- Next by Date: Re: SQL 2k5 Views Referencing Different Schemas - Permissions Issues
- Previous by thread: Re: SQL User SID format?
- Next by thread: Re: SQL User SID format?
- Index(es):