Moving logins to new server ???
From: Ashish (anonymous_at_discussions.microsoft.com)
Date: 05/27/04
- Next message: Stephen Dybing [MSFT]: "Re: Do I have a Spy software"
- Previous message: Gary: "Re: SQL Accounts"
- In reply to: Nick J: "Moving logins to new server ???"
- Next in thread: Hari: "Re: Moving logins to new server ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: Thu, 27 May 2004 13:16:49 -0700
Run following to create scripts on primary. Copy scripts
from Primary and run on secondary server to create logins
with passwords
select 'EXEC sp_addlogin @loginame = ''' + name + ''''+
', @passwd = "' + coalesce(password,' ') +
'", @encryptopt = skip_encryption' +
', @sid = ' ,sid
from master..syslogins
>-----Original Message-----
>Working on migrating a database used for a website
>backend from an old server to a totally new one.
>The new server already has some production databases
>running on it.
>The website database uses SQL authentication to grant
>access to procedures/data on a per website user basis.
>(i.e. user logs onto website over SSL with their SQL name
>and password which is then used by ASP for any database
>interaction)
>There are HUNDREDS of logins.
>
>Is there any way to move or copy these logins to the new
>sever, complete with passwords?
>If not, are there other options that don't involve
>assigning everyone new passwords?
>
>Thanks.
>.
>
- Next message: Stephen Dybing [MSFT]: "Re: Do I have a Spy software"
- Previous message: Gary: "Re: SQL Accounts"
- In reply to: Nick J: "Moving logins to new server ???"
- Next in thread: Hari: "Re: Moving logins to new server ???"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|