<?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 Query SQL to show all table names and the SRID in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-sql-to-show-all-table-names-and-the-srid/m-p/1272577#M35481</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to create a query SQL to show all table names and the SRID (EPSG Code) from each table on Enterprise Geodatabase SQL Server.&amp;nbsp;&lt;BR /&gt;Currently, I can use this SQL to show the Srid for one table:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT DISTINCT&amp;nbsp;SHAPE.STSrid AS espg_code&amp;nbsp;FROM&amp;nbsp;table_name;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But I need to show Srid for all geometry tables in the database.&lt;BR /&gt;&lt;BR /&gt;I tried some queries but without success.&lt;/P&gt;</description>
    <pubDate>Tue, 28 Mar 2023 16:41:17 GMT</pubDate>
    <dc:creator>byander</dc:creator>
    <dc:date>2023-03-28T16:41:17Z</dc:date>
    <item>
      <title>Query SQL to show all table names and the SRID</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-sql-to-show-all-table-names-and-the-srid/m-p/1272577#M35481</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I need to create a query SQL to show all table names and the SRID (EPSG Code) from each table on Enterprise Geodatabase SQL Server.&amp;nbsp;&lt;BR /&gt;Currently, I can use this SQL to show the Srid for one table:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SELECT DISTINCT&amp;nbsp;SHAPE.STSrid AS espg_code&amp;nbsp;FROM&amp;nbsp;table_name;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But I need to show Srid for all geometry tables in the database.&lt;BR /&gt;&lt;BR /&gt;I tried some queries but without success.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 16:41:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-sql-to-show-all-table-names-and-the-srid/m-p/1272577#M35481</guid>
      <dc:creator>byander</dc:creator>
      <dc:date>2023-03-28T16:41:17Z</dc:date>
    </item>
    <item>
      <title>Re: Query SQL to show all table names and the SRID</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-sql-to-show-all-table-names-and-the-srid/m-p/1272581#M35482</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;SELECT l.database_name [DatabaseName],
l.table_name [TableName],
l.owner [SchemaOwner],
sr.auth_srid [SRID],
srtext [WKT]
FROM [database].[dbo].[SDE_layers] l
inner join database.dbo.SDE_spatial_references sr
on l.srid = sr.srid&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 16:59:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-sql-to-show-all-table-names-and-the-srid/m-p/1272581#M35482</guid>
      <dc:creator>CoffeeforClosers</dc:creator>
      <dc:date>2023-03-28T16:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: Query SQL to show all table names and the SRID</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/query-sql-to-show-all-table-names-and-the-srid/m-p/1272697#M35485</link>
      <description>&lt;P&gt;Tank's&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/425367"&gt;@CoffeeforClosers&lt;/a&gt;&amp;nbsp;, it works!!!!&lt;/P&gt;</description>
      <pubDate>Tue, 28 Mar 2023 19:13:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/query-sql-to-show-all-table-names-and-the-srid/m-p/1272697#M35485</guid>
      <dc:creator>byander</dc:creator>
      <dc:date>2023-03-28T19:13:55Z</dc:date>
    </item>
  </channel>
</rss>

