<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Copying *.mdf database from machine to another affects logins, in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/copying-mdf-database-from-machine-to-another/m-p/482915#M27473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Original User: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Jamal432@gmail.com"&gt;Jamal432@gmail.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, adding a database with new or different user names (or even users created&lt;BR /&gt;in a different order) will affect login-user mapping.&amp;nbsp; That's why Microsoft has a&lt;BR /&gt; &lt;A href="http://technet.microsoft.com/en-us/library/ms174378.aspx"&gt;sp_change_users_login&lt;/A&gt; utility.&lt;BR /&gt;&lt;BR /&gt;You can't preserve userids across instances without an extraordinary amount of work&lt;BR /&gt;(which has to be done before they first get out of sync). &lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks Vince for the help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other option could be to create users once again to the N.mdb database while it is on the other machine. Fortunately, the list of users is kept at user�??s folder of the security folder of the database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition to that, privileges and versions are preserved as the same user name is created on the database despite the fact that the system says �??database user already exists�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27716[/ATTACH], [ATTACH=CONFIG]27717[/ATTACH], [ATTACH=CONFIG]27718[/ATTACH], [ATTACH=CONFIG]27719[/ATTACH], [ATTACH=CONFIG]27720[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 24 Sep 2013 17:09:48 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2013-09-24T17:09:48Z</dc:date>
    <item>
      <title>Copying *.mdf database from machine to another affects logins,</title>
      <link>https://community.esri.com/t5/data-management-questions/copying-mdf-database-from-machine-to-another/m-p/482913#M27471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Original User: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Jamal432@gmail.com"&gt;Jamal432@gmail.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Copying *.mdf database from machine to another affects logins,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I�??m wondering why coping the *.mdf to another machine makes it impossible for the users to access their databases.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Scenario:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. A user B1 is created on the N.mdf database&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27709[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. B1 is added automatically on the users of the N.mdf and in the logins of the security of the SQL database&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27710[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Of course, B1 is able to access the N.mdf database&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27711[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;4. The N.mdf is copied to another machine and attached to its databases&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Now, B1 is not able to access the N.mdf&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27712[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What might be the issue here?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Why the users are not able to access their databases as the database is copied to another machine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;How to preserve the logins as the database is copied to another machine?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 15:35:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copying-mdf-database-from-machine-to-another/m-p/482913#M27471</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-09-24T15:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Copying *.mdf database from machine to another affects logins,</title>
      <link>https://community.esri.com/t5/data-management-questions/copying-mdf-database-from-machine-to-another/m-p/482914#M27472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes, adding a database with new or different user names (or even users created&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in a different order) will affect login-user mapping.&amp;nbsp; That's why Microsoft has a&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;A href="http://technet.microsoft.com/en-us/library/ms174378.aspx"&gt;sp_change_users_login&lt;/A&gt;&lt;SPAN&gt; utility.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You can't preserve userids across instances without an extraordinary amount of work&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;(which has to be done before they first get out of sync). &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;- V&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 15:55:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copying-mdf-database-from-machine-to-another/m-p/482914#M27472</guid>
      <dc:creator>VinceAngelo</dc:creator>
      <dc:date>2013-09-24T15:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Copying *.mdf database from machine to another affects logins,</title>
      <link>https://community.esri.com/t5/data-management-questions/copying-mdf-database-from-machine-to-another/m-p/482915#M27473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;&lt;SPAN&gt;Original User: &lt;/SPAN&gt;&lt;A class="jive-link-email-small" href="mailto:Jamal432@gmail.com"&gt;Jamal432@gmail.com&lt;/A&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Yes, adding a database with new or different user names (or even users created&lt;BR /&gt;in a different order) will affect login-user mapping.&amp;nbsp; That's why Microsoft has a&lt;BR /&gt; &lt;A href="http://technet.microsoft.com/en-us/library/ms174378.aspx"&gt;sp_change_users_login&lt;/A&gt; utility.&lt;BR /&gt;&lt;BR /&gt;You can't preserve userids across instances without an extraordinary amount of work&lt;BR /&gt;(which has to be done before they first get out of sync). &lt;BR /&gt;&lt;BR /&gt;- V&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Many thanks Vince for the help,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The other option could be to create users once again to the N.mdb database while it is on the other machine. Fortunately, the list of users is kept at user�??s folder of the security folder of the database. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In addition to that, privileges and versions are preserved as the same user name is created on the database despite the fact that the system says �??database user already exists�?�&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[ATTACH=CONFIG]27716[/ATTACH], [ATTACH=CONFIG]27717[/ATTACH], [ATTACH=CONFIG]27718[/ATTACH], [ATTACH=CONFIG]27719[/ATTACH], [ATTACH=CONFIG]27720[/ATTACH]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jamal&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 24 Sep 2013 17:09:48 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copying-mdf-database-from-machine-to-another/m-p/482915#M27473</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2013-09-24T17:09:48Z</dc:date>
    </item>
  </channel>
</rss>

