<?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 How to restore SDE database in SQL SERVER2008 in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/how-to-restore-sde-database-in-sql-server2008/m-p/332913#M18963</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have experience to restore SQL SERVER database from SDE point of view?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I restored a database in SQL Server2008, the database name exactly the same as the original one. while I couldn't access from ArcCatalog, the error message was "Bad Login User". I check the permission of user, there was no problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="mailto:&amp;quot;jessiezhangleo@hotmail.com&amp;quot;" rel="nofollow"&gt;jessiezhangleo@hotmail.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jessie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 May 2010 13:06:51 GMT</pubDate>
    <dc:creator>jessieleo</dc:creator>
    <dc:date>2010-05-18T13:06:51Z</dc:date>
    <item>
      <title>How to restore SDE database in SQL SERVER2008</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-restore-sde-database-in-sql-server2008/m-p/332913#M18963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have experience to restore SQL SERVER database from SDE point of view?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I restored a database in SQL Server2008, the database name exactly the same as the original one. while I couldn't access from ArcCatalog, the error message was "Bad Login User". I check the permission of user, there was no problem.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you for your help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="mailto:&amp;quot;jessiezhangleo@hotmail.com&amp;quot;" rel="nofollow"&gt;jessiezhangleo@hotmail.com&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jessie&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 May 2010 13:06:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-restore-sde-database-in-sql-server2008/m-p/332913#M18963</guid>
      <dc:creator>jessieleo</dc:creator>
      <dc:date>2010-05-18T13:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to restore SDE database in SQL SERVER2008</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-restore-sde-database-in-sql-server2008/m-p/332914#M18964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jessie&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Did you sync the logins for the database users with the instance logins using the exec sp_change_users_login?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eg&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;use &amp;lt;database&amp;gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;go &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXEC sp_change_users_login 'Update_One', '&amp;lt;user&amp;gt;', '&amp;lt;password&amp;gt;' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;go &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the login does not already exist on the instance, you can also use auto_fix if, according to microsoft, you are not in security-sensitve situations. e.g.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXEC sp_change_users_login 'Auto_Fix', '&amp;lt;user&amp;gt;',NULL, '&amp;lt;password&amp;gt;' &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;More info can be found at Microsoft's MSDN Library doc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheryl&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 May 2010 13:20:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-restore-sde-database-in-sql-server2008/m-p/332914#M18964</guid>
      <dc:creator>CherylCleghorn</dc:creator>
      <dc:date>2010-05-19T13:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to restore SDE database in SQL SERVER2008</title>
      <link>https://community.esri.com/t5/data-management-questions/how-to-restore-sde-database-in-sql-server2008/m-p/332915#M18965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hope this help:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*For sqlserver 2005 you can run this (this might work, i havnt tested yet). This is used when you do restore by copying the mdf file. I dont know why these codes do not work in sqlserver 2008&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use sde&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exec sp_change_users_login 'update_one', 'sde', 'sde'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exec sp_change_users_login 'update_one', 'username', 'pwd'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Use yourdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exec sp_change_users_login 'update_one', 'sde', 'sde'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Exec sp_change_users_login 'update_one', 'username', 'pwd'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;*For sqlserver 2008 you can run this. This works when you restore database from backup file :&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use sde&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;go&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXEC sp_change_users_login 'Auto_Fix', 'sde',NULL, 'pwd' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;go &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use yourdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;go&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXEC sp_change_users_login 'Auto_Fix', 'user',NULL, 'pwd' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;go&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use yourdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;go&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXEC sp_change_users_login 'Auto_Fix', 'sde',NULL, 'sde' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;go &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;use sde&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;go&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;EXEC sp_change_users_login 'Auto_Fix', 'user',NULL, 'sde' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;go&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 May 2010 09:22:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/how-to-restore-sde-database-in-sql-server2008/m-p/332915#M18965</guid>
      <dc:creator>tongkimongki</dc:creator>
      <dc:date>2010-05-20T09:22:51Z</dc:date>
    </item>
  </channel>
</rss>

