<?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: Copy production Database and &amp;quot;rename&amp;quot; as test database - what is the proper workflow? in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276879#M15954</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As for the GDB_Items table (or any GDB/SDE_ table for that matter) is a system and should not make sense, for most people &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may be correct that some of the relationships were created in SQL Server and not ArcGIS. If that is the case, then the ArcGIS client would not know of them and you would be required to transfer them via SSMS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Sep 2017 14:22:32 GMT</pubDate>
    <dc:creator>George_Thompson</dc:creator>
    <dc:date>2017-09-29T14:22:32Z</dc:date>
    <item>
      <title>Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276871#M15946</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a database in production and need to update an old copy of it, the "test" database, where&amp;nbsp;I can only assume the person in this position before me did a backup &amp;amp; restore to create the test database, but renamed it during the restore process&amp;nbsp; thus I cannot actually connect to it in ArcMap because all the SDE tables have the production database name, not whatever he renamed it to (cause renaming is a no-no with SDE geodatabases). I can't revert this test database back to the original name because the production database exists in the same SQL Server instance and you can't have two databases named the same. Plus, the data in it is old and I want to update it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what is the proper workflow for creating a copy of a database with a new name? I'm thinking it'd look something like this:&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;Use Create Enterprise Geodatabase&amp;nbsp;tool with the new name "MyDatabaseTest"&lt;/P&gt;&lt;P&gt;2) Add users (is there any way to copy users from the production database to the new test one or do you really have to go through and do it manually again?)&lt;/P&gt;&lt;P&gt;3) Use ArcCatalog to copy/paste feature classes and tables from production database to new test database&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;How does this copy/paste process affect existing table relationships in the RDMS?&lt;/STRONG&gt; I worry about losing all of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Will this workflow work? I assume after going through this, I would be able to use direct connection in ArcMap to connect to the new test database, as that is really the goal.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For reference, working with SQL Server 2014 and Desktop 10.5. I'm not sure what version of SDE we're working with, if it's the same as Server it'd be 10.4.1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 11:44:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276871#M15946</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2017-09-29T11:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276872#M15947</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As you found out you cannot change the name of the SQL Server database once created. This is also true if you have a second instance of SQL Server, the DB name must stay the same always.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&lt;SPAN style="color: #4d4d4d; background-color: #fefefe;"&gt;No matter which of the methods you use to move your SQL Server database, you cannot rename the database. When you restore a database, for example, you are given the opportunity to restore it with a different name. Don't do this with a geodatabase; you won't be able to connect to it.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the documentation on the ways to move SQL Server DB's:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/move-geodatabase-sqlserver.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/gdbs-in-sql-server/move-geodatabase-sqlserver.htm"&gt;Methods to move a geodatabase in SQL Server—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Copy/Paste into a new SQL Server EGDB should not impact the relationships and carry them over. If the data is versioned, it will only copy over the data for the version in which you are connected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/group/1680"&gt;Geodatabase&lt;/A&gt;‌ &lt;A href="https://community.esri.com/space/2100"&gt;ArcGIS Enterprise&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 11:57:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276872#M15947</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2017-09-29T11:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276873#M15948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Consider the possibility of having a separate Testing\Development SQL Server instance. That way it would be easier to have updated data on the Testing database, through simple backup\restore whenever needed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 12:41:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276873#M15948</guid>
      <dc:creator>Asrujit_SenGupta</dc:creator>
      <dc:date>2017-09-29T12:41:01Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276874#M15949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just followed through with my outlined steps above and after copying the data over, it does not appear the relationships carried as you stated they would. How are you getting the table relationships to carry over? When I look at dependencies for a particular table that I know should have many relationships in SQL Server Management Studio, there are none...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/375571_Capture.PNG" style="width: 620px; height: 560px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 13:38:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276874#M15949</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2017-09-29T13:38:19Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276875#M15950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You will not find the relationships in SSMS or the root EGDB in SQL Server. These are objects that ONLY exist in the Geodatabase and in the ArcGIS Client.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this help:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/copying-feature-datasets-classes-and-tables-to-ano.htm" title="http://desktop.arcgis.com/en/arcmap/latest/manage-data/geodatabases/copying-feature-datasets-classes-and-tables-to-ano.htm"&gt;Copying feature datasets, classes, and tables to another geodatabase—ArcGIS Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;it talks about relationship classes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 13:42:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276875#M15950</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2017-09-29T13:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276876#M15951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well then can you maybe help me understand what the person in this position before me did because I can see the relationships for the MonitoringPoint table in the SSMS just fine in the production database. In the image below of (in the production database), the MonitoringPoint table contains point features, so it is spatial. Count and CoveyCount are not spatial. Did the person create these tables in SQL Server and not ArcCatalog and that's why they're showing up in the dependencies for MonitoringPoint in the production database?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When creating the test database I copied/pasted everything using ArcCatalog. Should I be copying/pasting only the spatial layers (feature classes) using ArcCatalog and copying/pasting the rest of the SQL-made tables using SSMS? I want to be able to make sure the relationships are preserved and viewable...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/375575_Capture.PNG" style="width: 620px; height: 560px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 13:57:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276876#M15951</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2017-09-29T13:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276877#M15952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure on the SQL Server side what is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happens if you just copy over the feature class with the relationships to the new EGDB?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 14:03:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276877#M15952</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2017-09-29T14:03:50Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276878#M15953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can see in the GDB_ITEMRELATIONSHIPS table that some relationships are being carried over though I cannot tell what ones given it's just a list of various IDs. I'm assuming this is what you were referring to in your previous post about these relationships only existing in the geodatabase.&amp;nbsp;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/375576_Capture.PNG" style="width: 620px; height: 487px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thing is, I can't tell what these relationships actually are considering it's just a listing of various ID strings. This table has no meaning to me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I just copy over the feature classes in ArcCatalog and leave the SQL-derived tables, I just get a feature classes in the database, nothing else comes with it (aside from two rows in the GDB_ITEMRELATIONSHIPS table). I think the problem could be that the table relationships were actually originally established in SQL Server, not in ArcMap/Catalog.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 14:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276878#M15953</guid>
      <dc:creator>MKF62</dc:creator>
      <dc:date>2017-09-29T14:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276879#M15954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As for the GDB_Items table (or any GDB/SDE_ table for that matter) is a system and should not make sense, for most people &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may be correct that some of the relationships were created in SQL Server and not ArcGIS. If that is the case, then the ArcGIS client would not know of them and you would be required to transfer them via SSMS.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 14:22:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/276879#M15954</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2017-09-29T14:22:32Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/1129276#M43733</link>
      <description>&lt;P&gt;Not to dig up the dead or anything, but I'm interested in how far down this rabbit hole you went. I'm just discovering these pitfalls as of today RE: inability to restore an enterprise geodatabase to a different name&lt;/P&gt;</description>
      <pubDate>Tue, 28 Dec 2021 21:04:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/1129276#M43733</guid>
      <dc:creator>feralcatcolonist_old</dc:creator>
      <dc:date>2021-12-28T21:04:42Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/1375644#M44913</link>
      <description>&lt;P&gt;Found this thread and was able to successfully clone a 10.9.1 SDE&amp;nbsp; SQL server database.&amp;nbsp; In my case, wanted to copy AGIS to AGIS10.&amp;nbsp; &amp;nbsp;In SSMS, issue these DMLs:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="sql"&gt;UPDATE [AGIS10].[dbo].SDE_column_registry SET [database_name] = 'AGIS10';
UPDATE [AGIS10].[dbo].SDE_geometry_columns SET f_table_catalog = 'AGIS10';
UPDATE [AGIS10].[dbo].SDE_layers SET [database_name] = 'AGIS10';
UPDATE [AGIS10].[dbo].SDE_table_registry SET [database_name] = 'AGIS10';
UPDATE [AGIS10].[dbo].[GDB_ITEMS] SET [name] = replace([name],'AGIS.','AGIS10.'), [physicalname] = replace([physicalname],'AGIS.','AGIS10.'), [path] = replace([Path],'AGIS.','AGIS10.')&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 20:21:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/1375644#M44913</guid>
      <dc:creator>HopNguyen</dc:creator>
      <dc:date>2024-01-29T20:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/1375680#M44914</link>
      <description>&lt;P&gt;I wanted to post that there is a supported way to do this now with SQL Server Enterprise Geodatabases:&amp;nbsp;&lt;A href="https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/restoring-sql-server-databases-with-a-new-name/" target="_blank"&gt;https://www.esri.com/arcgis-blog/products/arcgis-pro/data-management/restoring-sql-server-databases-with-a-new-name/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I would not recommend any other way as there may be issues down the road.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 21:15:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/1375680#M44914</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2024-01-29T21:15:28Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/1375684#M44915</link>
      <description>&lt;P&gt;See my post below, I would not recommend this as it could have impacts down the road that would be unsupported.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 21:15:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/1375684#M44915</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2024-01-29T21:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Copy production Database and "rename" as test database - what is the proper workflow?</title>
      <link>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/1375688#M44916</link>
      <description>&lt;P&gt;The reason this is the chosen path is because ArcMap is going away, and for legacy users to transition to ArcGIS Pro.&amp;nbsp; In our instance, ArcGIS Pro and ArcGIS Enterprise will use the none copied SDE DB, we'll be upgrading that to SDE version 11.2.&amp;nbsp; &amp;nbsp;As long as ArcMap users can access their data, that's all we're concern with, it will eventually go away.&amp;nbsp; I do agree, I would not do this for our 11.2 SDE DB.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jan 2024 21:20:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/copy-production-database-and-quot-rename-quot-as/m-p/1375688#M44916</guid>
      <dc:creator>HopNguyen</dc:creator>
      <dc:date>2024-01-29T21:20:31Z</dc:date>
    </item>
  </channel>
</rss>

