<?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: Open standalone table from map service in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775757#M862</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's ok I think you've answered my question, thanks Rich. The answer being that I need a feature service to get a geodatabase pointer; a map service isn't sufficient.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jun 2018 13:27:35 GMT</pubDate>
    <dc:creator>Anonymous User</dc:creator>
    <dc:date>2018-06-15T13:27:35Z</dc:date>
    <item>
      <title>Open standalone table from map service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775753#M858</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To access a map service table as a standalone table it seems I have to specify a table container (map) in order to create an instance of the table e.g. &lt;STRONG&gt;StandaloneTableFactory.Instance.CreateStandaloneTable(url, map)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way I can get an instance of the map service table to query it without adding it to a map? This table is hosted in an ArcGIS Server Map Service.&amp;nbsp; I want to avoid using the ArcGIS Rest Query endpoint directly&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example in the Pro SDK I can open a geodatabase table using&amp;nbsp; &lt;STRONG&gt;gdb.OpenDatase&amp;lt;Table&amp;gt;(name)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically I want to query some tables using .Search() which works fine, but I don't want them in the map.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 15:08:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775753#M858</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-06-05T15:08:38Z</dc:date>
    </item>
    <item>
      <title>Re: Open standalone table from map service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775754#M859</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you publish a table as part of a feature service, you can use another layer on that service to get a Geodatabase pointer. &amp;nbsp;Once you have that, you can use &lt;STRONG&gt;gdb.OpenDataset&amp;lt;Table&amp;gt;(name)&lt;/STRONG&gt; as you would expect. The only thing to look out for&amp;nbsp;is the feature service will change the name of the table that is exposed. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Jun 2018 22:28:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775754#M859</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2018-06-05T22:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: Open standalone table from map service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775755#M860</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich, looks like we may have to reconsider our service types we publish in that case.&amp;nbsp; Can you confirm this is the only way to get a Table instance from a web service table? We have an add-in with some functionality that queries some tables and runs off any data source type (fgdb, sde, and web service). Shame we can get a StandaloneTable instance but not a Table instance, guess that's a limitation of the mapservice capabilities? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 12:03:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775755#M860</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-06-14T12:03:09Z</dc:date>
    </item>
    <item>
      <title>Re: Open standalone table from map service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775756#M861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luke, I'm not sure I understand the question. &amp;nbsp;You can get a Table object from a Geodatabase object using&amp;nbsp;&lt;STRONG&gt;OpenDataset&amp;lt;Table&amp;gt;&lt;/STRONG&gt;. &amp;nbsp;This is true if the Geodatabase object comes from a file geodatabase, an enterprise client-server geodatabase or a feature service geodatabase. &amp;nbsp;What am I missing?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2018 17:07:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775756#M861</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2018-06-14T17:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Open standalone table from map service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775757#M862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's ok I think you've answered my question, thanks Rich. The answer being that I need a feature service to get a geodatabase pointer; a map service isn't sufficient.&amp;nbsp;&lt;/P&gt;&lt;P&gt;-Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jun 2018 13:27:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775757#M862</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-06-15T13:27:35Z</dc:date>
    </item>
    <item>
      <title>Re: Open standalone table from map service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775758#M863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell me a bit more about the table name change in feature service geodatabases? Is this documented somewhere? Got this largely working but the naming is problematic!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jun 2018 12:52:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775758#M863</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-06-20T12:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Open standalone table from map service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775759#M864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luke,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry for the delay. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;By far the easiest way to open a table is to pass in the layer ID as a string to OpenDataset.&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;using (Table myTable = geodatabase.OpenDataset&amp;lt;Table&amp;gt;("2");&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't know the layer ID, the safest way is to get a list of the table definitions in the geodatabase. &amp;nbsp;Loop through that list until you find one whose alias matches the alias of the table you wish to open. &amp;nbsp;You can then get the changed name from that TableDefinition object. &amp;nbsp;Consider this code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;Table GetTableFromAlias(Geodatabase geodatabase, String aliasName)
{
&amp;nbsp; string tableName = "";

&amp;nbsp; // Find the table name of the table whose alias matches
&amp;nbsp; IReadOnlyList&amp;lt;TableDefinition&amp;gt; tableDefs = geodatabase.GetDefinitions&amp;lt;TableDefinition&amp;gt;();
&amp;nbsp; foreach (TableDefinition tableDef in tableDefs)
&amp;nbsp; {
&amp;nbsp; &amp;nbsp; if (tableDef.GetAliasName() == aliasName)
&amp;nbsp; &amp;nbsp; &amp;nbsp; {
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; tableName = tableDef.GetName();
&amp;nbsp; &amp;nbsp; &amp;nbsp; }
&amp;nbsp; &amp;nbsp; tableDef.Dispose();
&amp;nbsp; }

&amp;nbsp; // Open the table that corresponds to this table name
&amp;nbsp; if (tableName != "")
&amp;nbsp; {
&amp;nbsp; &amp;nbsp; return geodatabase.OpenDataset&amp;lt;Table&amp;gt;(tableName);
&amp;nbsp; }
&amp;nbsp; else
&amp;nbsp; {
&amp;nbsp; &amp;nbsp; return null;
&amp;nbsp; }
}&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 16:54:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775759#M864</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2021-12-12T16:54:23Z</dc:date>
    </item>
    <item>
      <title>Re: Open standalone table from map service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775760#M865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that my application doesn't know what the alias of the table is that i'm trying to find. It only knows the original source table name in fgdb/sde. Surely an alias should only be used for display purposes, should I really be using it to retieve tables? If I want to have functionality that runs off both local (fgdb/sde) and web (featureserver gdb) data sources, this means I have to query local sources using the original source table name, but query web sources using the alias or layer index? Or perhaps I should be using alias for both? I feel like i'm missing something here or misunderstanding. I don't understand why the table name would ever be changed unless I change it myself. Is original source name completely lost when published as a web service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As an example, my original table name in the enterprise gdb is &lt;STRONG&gt;FLD_PROD&lt;/STRONG&gt;. The alias is &lt;STRONG&gt;Field Production&lt;/STRONG&gt;. The index of this table in the feature service is &lt;STRONG&gt;1010&lt;/STRONG&gt;. But the table name is changed to &lt;STRONG&gt;L1010Field_Production_ &lt;/STRONG&gt;which is bizarre to say the least. Is there no way I can use the original &lt;STRONG&gt;FLD_PROD&lt;/STRONG&gt; to get this table from the feature service?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Jul 2018 11:08:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775760#M865</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-07-04T11:08:15Z</dc:date>
    </item>
    <item>
      <title>Re: Open standalone table from map service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775761#M866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Luke,&lt;/P&gt;&lt;P&gt;I don’t think you’re missing anything and it sounds like you understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is how we chose to implement it. Feature services tends to have a map-focused rather than database-focused viewpoint, and exposing the original tablenames is seen as exposing an unnecessary implementation detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Admittedly, this complicates an application like yours that tries to treat feature services and client-server databases in the same way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2018 15:38:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775761#M866</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2018-07-05T15:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Open standalone table from map service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775762#M867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok thanks Rich, I appreciate the help. It's a shame really, because the Pro SDK otherwise seems to treat the sources in much the same way once I have the geodatabase object, almost seemless.&lt;/P&gt;&lt;P&gt;Does seem like a strange design decision, if you ask me changing the table name is the unnecessary implementation detail!&lt;/P&gt;&lt;P&gt;My solution in this case will be to recode our add-in to query all tables by their alias instead regardless of data source (thanks for the snippet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Luke&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2018 08:57:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/775762#M867</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2018-07-06T08:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Open standalone table from map service</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/1694486#M13482</link>
      <description>&lt;P&gt;This is very helpful, Rich.&amp;nbsp; &amp;nbsp;Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 03 Apr 2026 23:21:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/open-standalone-table-from-map-service/m-p/1694486#M13482</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2026-04-03T23:21:28Z</dc:date>
    </item>
  </channel>
</rss>

