<?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: Migration to Azure SQL Database, upgrade geodatabase error - duplicate key in object 'sde.SDE_table_registry', Enterprise geodatabase in Geodatabase Questions</title>
    <link>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1109996#M7407</link>
    <description>&lt;P&gt;I think we're going to work around it by creating a new geodatabase and importing the old database into it.&lt;/P&gt;&lt;P&gt;It will take longer than shifting the existing one&amp;nbsp;(once working) but should be quicker than raising a support call to troubleshoot the shifting.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Oct 2021 21:37:13 GMT</pubDate>
    <dc:creator>LeonAus</dc:creator>
    <dc:date>2021-10-21T21:37:13Z</dc:date>
    <item>
      <title>Migration to Azure SQL Database, upgrade geodatabase error - duplicate key in object 'sde.SDE_table_registry', Enterprise geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1105067#M7390</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to migrate an on-prem 10.1 enterprise geodatabase from SQL Server to a 10.8.1 geodatabase in Azure SQL Database.&lt;/P&gt;&lt;P&gt;Using this &lt;A href="https://support.esri.com/en/technical-article/000023991" target="_self"&gt;technical article&lt;/A&gt; as a guide, we have upgraded the on-prem 10.1 geodatabase to 10.8.1 using the upgrade geodatabase tool&amp;nbsp; (worked ok after giving the sde user the right permissions).&lt;/P&gt;&lt;P&gt;Then migrated the geodatabase into an&amp;nbsp;Azure SQL Database using the&amp;nbsp;&lt;SPAN&gt;Azure Data&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Migration&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Assistant , then ran the 10.8.1 upgrade geodatabase tool a second time (to update the stored procedures) but in doing so got the following error:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Could not update server tables and stored procedures. (sde_branches : Error (-37)&lt;BR /&gt;&amp;nbsp; DBMS error code: 2627&lt;BR /&gt;[Microsoft][ODBC Driver 11 for SQL Server][SQL Server]Violation of UNIQUE KEY constraint 'registry_uk2'. Cannot insert duplicate key in object 'sde.SDE_table_registry'. The duplicate key value is (SDE_BRANCHES, SDE, [database name]).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LeonWoodhouse2_0-1633497896165.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/24616iB126AAB218E039DD/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LeonWoodhouse2_0-1633497896165.png" alt="LeonWoodhouse2_0-1633497896165.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;There is no further information in the log files referenced in the error. The geodatabase isn't versioned, though I did try a compress but that had no effect.&lt;/P&gt;&lt;P&gt;Is this a bug with the upgrade geodatabase tool using an Azure SQL Database or is there a permission or step that I am missing?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Oct 2021 05:38:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1105067#M7390</guid>
      <dc:creator>LeonAus</dc:creator>
      <dc:date>2021-10-06T05:38:02Z</dc:date>
    </item>
    <item>
      <title>Re: Migration to Azure SQL Database, upgrade geodatabase error - duplicate key in object 'sde.SDE_table_registry', Enterprise geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1109843#M7406</link>
      <description>&lt;P&gt;Hey LeonAus,&lt;/P&gt;&lt;P&gt;Sorry your encountering this behavior. Did you happen to have any support case opened for this issue? I think that might be the best way to proceed so that we can get the database backup in house to do some additional testing.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks, CD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 17:17:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1109843#M7406</guid>
      <dc:creator>ChestonDobbins</dc:creator>
      <dc:date>2021-10-21T17:17:53Z</dc:date>
    </item>
    <item>
      <title>Re: Migration to Azure SQL Database, upgrade geodatabase error - duplicate key in object 'sde.SDE_table_registry', Enterprise geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1109996#M7407</link>
      <description>&lt;P&gt;I think we're going to work around it by creating a new geodatabase and importing the old database into it.&lt;/P&gt;&lt;P&gt;It will take longer than shifting the existing one&amp;nbsp;(once working) but should be quicker than raising a support call to troubleshoot the shifting.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 21:37:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1109996#M7407</guid>
      <dc:creator>LeonAus</dc:creator>
      <dc:date>2021-10-21T21:37:13Z</dc:date>
    </item>
    <item>
      <title>Re: Migration to Azure SQL Database, upgrade geodatabase error - duplicate key in object 'sde.SDE_table_registry', Enterprise geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1109998#M7408</link>
      <description>&lt;P&gt;That should definitely get you around the issue, but I would still like to investigate your database backup... Is there anyway you might be able to provide it to me directly so we can determine if there is a bug and prevent other users from hitting the same?&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 21:43:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1109998#M7408</guid>
      <dc:creator>ChestonDobbins</dc:creator>
      <dc:date>2021-10-21T21:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Migration to Azure SQL Database, upgrade geodatabase error - duplicate key in object 'sde.SDE_table_registry', Enterprise geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1112234#M7416</link>
      <description>&lt;P&gt;Hi there. I just had the exact same problem with the exact same error code. I managed to fix it by checking the login properties of the "sde" user in SQL Server Management Studio. The default schema was listed as "dbo". When I updated it to "sde", then the problem was fixed and I could upgrade the database. Hope that points you in the right direction&lt;/P&gt;</description>
      <pubDate>Thu, 28 Oct 2021 19:39:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1112234#M7416</guid>
      <dc:creator>NickKoopman</dc:creator>
      <dc:date>2021-10-28T19:39:01Z</dc:date>
    </item>
    <item>
      <title>Re: Migration to Azure SQL Database, upgrade geodatabase error - duplicate key in object 'sde.SDE_table_registry', Enterprise geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1112404#M7417</link>
      <description>&lt;P&gt;Thanks NickKoopman, We will try the SDE user with DBO default schema scenario to see if we can reproduce the issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 14:27:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1112404#M7417</guid>
      <dc:creator>ChestonDobbins</dc:creator>
      <dc:date>2021-10-29T14:27:47Z</dc:date>
    </item>
    <item>
      <title>Re: Migration to Azure SQL Database, upgrade geodatabase error - duplicate key in object 'sde.SDE_table_registry', Enterprise geodatabase</title>
      <link>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1225966#M7970</link>
      <description>&lt;P&gt;I just had this exact same problem and was baffled to what was causing it. Found your post and your solution fixed it for me as well. For some reason on one of the five SDE databases I was upgrading, the 'sde' user was set to 'dbo' for default schema but not the others. Very strange!&lt;/P&gt;</description>
      <pubDate>Wed, 26 Oct 2022 22:52:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geodatabase-questions/migration-to-azure-sql-database-upgrade/m-p/1225966#M7970</guid>
      <dc:creator>MalcolmJ</dc:creator>
      <dc:date>2022-10-26T22:52:11Z</dc:date>
    </item>
  </channel>
</rss>

