﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / SQL Server 2008 / SQL Server 2008 - General  / Script for Copying Logins from one server to other server with database / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Wed, 22 May 2013 15:12:15 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Script for Copying Logins from one server to other server with database</title><link>http://www.sqlservercentral.com/Forums/Topic702963-391-1.aspx</link><description>[quote][b]Anil Kumar Kurra (4/23/2009)[/b][hr]Hi All,    Thanks for the reply. If we Back up &amp; restore the database in another server whether all security Objects like Users,Roles etc will also move to new server.Suppose if some of the users alreday exists on new server is there any way to skip that users.Please let me know on this.[/quote]The difference between a login and an user - a login allows a person to connect to SQL Server; a user allows a person to access objects in a database.  So users only exist in databases.  If you restore a database users, roles, and schemas are also restored.  After copying logins and databases to a new server, you may need to re-sync the users with their logins.  See [b]sp_change_users_login[/b] in BooksOnLine.</description><pubDate>Fri, 24 Apr 2009 09:34:04 GMT</pubDate><dc:creator>Greg Charles</dc:creator></item><item><title>RE: Script for Copying Logins from one server to other server with database</title><link>http://www.sqlservercentral.com/Forums/Topic702963-391-1.aspx</link><description>Hi All,   Sorry, One more question if the User IDs already exists in the server I need replace the User IDs during Copy of logins.   Please let me know is this possible?Cheers,Anil</description><pubDate>Thu, 23 Apr 2009 21:32:35 GMT</pubDate><dc:creator>Anil Kumar Kurra</dc:creator></item><item><title>RE: Script for Copying Logins from one server to other server with database</title><link>http://www.sqlservercentral.com/Forums/Topic702963-391-1.aspx</link><description>Hi All,    Thanks for the reply. If we Back up &amp; restore the database in another server whether all security Objects like Users,Roles etc will also move to new server.Suppose if some of the users alreday exists on new server is there any way to skip that users.Please let me know on this.Cheers,Anil</description><pubDate>Thu, 23 Apr 2009 17:50:10 GMT</pubDate><dc:creator>Anil Kumar Kurra</dc:creator></item><item><title>RE: Script for Copying Logins from one server to other server with database</title><link>http://www.sqlservercentral.com/Forums/Topic702963-391-1.aspx</link><description>I've used this script, which is a modified version of sp_help_revlogin, to script out logins, server roles, database users, database roles, and object permissions.  Remember that the databases need to exist in the destination server before you can create users.  Considering that, you might as well backup and restore the databases, which would also move the database users and their permissions.[url]http://www.sqlservercentral.com/scripts/31776/[/url]</description><pubDate>Thu, 23 Apr 2009 09:13:25 GMT</pubDate><dc:creator>Greg Charles</dc:creator></item><item><title>RE: Script for Copying Logins from one server to other server with database</title><link>http://www.sqlservercentral.com/Forums/Topic702963-391-1.aspx</link><description>Take a look at [url=http://support.microsoft.com/kb/918992]http://support.microsoft.com/kb/918992[/url]. This works in 2008 as well as 2005.</description><pubDate>Thu, 23 Apr 2009 07:31:55 GMT</pubDate><dc:creator>Nicholas Cain</dc:creator></item><item><title>Script for Copying Logins from one server to other server with database</title><link>http://www.sqlservercentral.com/Forums/Topic702963-391-1.aspx</link><description>Hi,  I want to copy a set of windows Logins &amp; Database Logins from one server to other sever with same roles setup &amp; Passwords. Please guide me how to do this.Cheers,Anil</description><pubDate>Thu, 23 Apr 2009 02:36:48 GMT</pubDate><dc:creator>Anil Kumar Kurra</dc:creator></item></channel></rss>