<?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: Enterprise database name changed to include a dash(-), now I cannot work with it using python. in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1228636#M66022</link>
    <description>&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Wondering what the resolution was in your case?&lt;/P&gt;&lt;P&gt;A few months back I was trying to connect on prem ArcGIS Pro, to a non-spatial AzureSQL database (with recommended Microsoft naming, which includes hyphens). I was able to make the connection, browse the list of tables, but unable to add the tables to the map, or browse the data.&lt;/P&gt;&lt;P&gt;We are about to pull the trigger on renaming the server/database because of this.&lt;/P&gt;&lt;P&gt;Today when I decided to test it again, I am now able to add tables to the map, and can browse data for smaller tables. I cannot view data for larger tables, so my issue now may be a timeout, rather than anything to do with the naming. In the interim - we have bumped up the AzureSQL server resources - so that may also have been part of my issue.&lt;/P&gt;&lt;P&gt;Were the hyphens ever the problem?&lt;/P&gt;</description>
    <pubDate>Fri, 04 Nov 2022 05:48:02 GMT</pubDate>
    <dc:creator>AndrewRitchie_CoL</dc:creator>
    <dc:date>2022-11-04T05:48:02Z</dc:date>
    <item>
      <title>SQL database (Non Spatial) name changed to include a dash(-), now I cannot work with it using python.</title>
      <link>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1006431#M59197</link>
      <description>&lt;P&gt;My agency recently migrated to the Microsoft Azure Cloud (sql server) and with it came a database name change. The name of the new database is "Migrate-Forestry".&amp;nbsp; I've gone through and updated my sde connection file and made sure my python scripts are pointing to it correctly. However all of them are now failing when trying reach a table through the sde connection. It's the generic error "Table does not exist or is not supported." I've done a lot of research but cannot find a solid answer to why my scripts are failing. I think it's because my database name has a dash in it, but just wanted clarification on this. Any help would be appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 14:38:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1006431#M59197</guid>
      <dc:creator>MichaelTorbett</dc:creator>
      <dc:date>2020-12-03T14:38:44Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise database name changed to include a dash(-), now I cannot work with it using python.</title>
      <link>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1006589#M59201</link>
      <description>&lt;P&gt;It may have to do with the renaming of the geodatabase.&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/move-geodatabase-sqlserver.htm" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/10.3/manage-data/gdbs-in-sql-server/move-geodatabase-sqlserver.htm&lt;/A&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;If you want to move a geodatabase to a new SQL Server instance, you can use SQL Server tools to move the entire database. Options to move a SQL Server database include detaching the database file from the SQL Server instance and attaching it to a new instance, creating a backup of the database and restoring it to a new SQL Server instance, or using the Copy Database wizard.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&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;/FONT&gt;&lt;/P&gt;&lt;P&gt;All object names in the geodatabase system tables are fully qualified with the database name. In addition, many stored procedures use a three-part naming syntax in their code, which follows the format &amp;lt;database&amp;gt;.&amp;lt;owner&amp;gt;.&amp;lt;object&amp;gt;. If the database name changes, you will not be able to execute these procedures&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Can you connect to the DB outside of Python via ArcGIS Pro in the same Azure region?&lt;/P&gt;&lt;P&gt;Also be sure to review these docs:&amp;nbsp;&lt;A href="https://enterprise.arcgis.com/en/server/latest/cloud/azure/functionality-geodatabase-azure-sql-database.htm" target="_blank"&gt;https://enterprise.arcgis.com/en/server/latest/cloud/azure/functionality-geodatabase-azure-sql-database.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://desktop.arcgis.com/en/arcmap/10.3/manage-data/databases/azure-sql-database-and-arcgis.htm" target="_blank"&gt;https://desktop.arcgis.com/en/arcmap/10.3/manage-data/databases/azure-sql-database-and-arcgis.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 13:06:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1006589#M59201</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2020-12-03T13:06:37Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise database name changed to include a dash(-), now I cannot work with it using python.</title>
      <link>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1006615#M59202</link>
      <description>&lt;P&gt;Hey George,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your reply.&amp;nbsp; I apologize, I should have worded my question better. The enterprise database that I am trying to connect to is not a Geodatabase, but just a standard non spatial sql database. I have scripts that pull data from it and update feature classes and feature services elsewhere.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I can connect to it in ArcGIS Pro. However, I cannot run Geoprocessing tools on any of the tables unless I first add them to my map first. I get the same message &lt;EM&gt;(table does not exist or is not supported&lt;/EM&gt;).&lt;/P&gt;&lt;P&gt;Referring to what you said about the object naming convention in Geodatabases. When I make an sde connection to this database, it sees all of the tables with the database name in front of it. Example:&amp;nbsp;&lt;EM&gt;Migrate-Forestry.dbo.gacounties. &lt;/EM&gt;I'm thinking the dash/hyphen is the problem. If so, do you&amp;nbsp; by chance know of a work around without renaming the database?&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 14:35:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1006615#M59202</guid>
      <dc:creator>MichaelTorbett</dc:creator>
      <dc:date>2020-12-03T14:35:20Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise database name changed to include a dash(-), now I cannot work with it using python.</title>
      <link>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1006658#M59203</link>
      <description>&lt;P&gt;I appreciate the updated information. I am not aware if the "&lt;EM&gt;dash / hyphen&lt;/EM&gt;" will cause any issues.&lt;/P&gt;&lt;P&gt;This may be best to work with technical support if no other users respond.&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 16:50:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1006658#M59203</guid>
      <dc:creator>George_Thompson</dc:creator>
      <dc:date>2020-12-03T16:50:12Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise database name changed to include a dash(-), now I cannot work with it using python.</title>
      <link>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1006667#M59204</link>
      <description>&lt;P&gt;Thanks George! I have created a case with ESRI Support. Maybe&amp;nbsp; there's workaround using python or something else.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 03 Dec 2020 17:18:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1006667#M59204</guid>
      <dc:creator>MichaelTorbett</dc:creator>
      <dc:date>2020-12-03T17:18:31Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise database name changed to include a dash(-), now I cannot work with it using python.</title>
      <link>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1228636#M66022</link>
      <description>&lt;P&gt;Hi Michael,&lt;/P&gt;&lt;P&gt;Wondering what the resolution was in your case?&lt;/P&gt;&lt;P&gt;A few months back I was trying to connect on prem ArcGIS Pro, to a non-spatial AzureSQL database (with recommended Microsoft naming, which includes hyphens). I was able to make the connection, browse the list of tables, but unable to add the tables to the map, or browse the data.&lt;/P&gt;&lt;P&gt;We are about to pull the trigger on renaming the server/database because of this.&lt;/P&gt;&lt;P&gt;Today when I decided to test it again, I am now able to add tables to the map, and can browse data for smaller tables. I cannot view data for larger tables, so my issue now may be a timeout, rather than anything to do with the naming. In the interim - we have bumped up the AzureSQL server resources - so that may also have been part of my issue.&lt;/P&gt;&lt;P&gt;Were the hyphens ever the problem?&lt;/P&gt;</description>
      <pubDate>Fri, 04 Nov 2022 05:48:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1228636#M66022</guid>
      <dc:creator>AndrewRitchie_CoL</dc:creator>
      <dc:date>2022-11-04T05:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Enterprise database name changed to include a dash(-), now I cannot work with it using python.</title>
      <link>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1230604#M66054</link>
      <description>&lt;P&gt;Yes, the hyphens seemed to be the problem. My db admin ended up renaming the database without a hyphen and that solved my issues.&lt;/P&gt;</description>
      <pubDate>Thu, 10 Nov 2022 18:58:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/sql-database-non-spatial-name-changed-to-include-a/m-p/1230604#M66054</guid>
      <dc:creator>MichaelTorbett</dc:creator>
      <dc:date>2022-11-10T18:58:17Z</dc:date>
    </item>
  </channel>
</rss>

