<?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: Arcpy Describe returns connected user as schema owner in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693727#M53804</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Joshua -&lt;BR /&gt;&lt;BR /&gt;The connection is SQL Server with Database Authentication.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Apr 2019 19:53:59 GMT</pubDate>
    <dc:creator>PhilLarkin1</dc:creator>
    <dc:date>2019-04-22T19:53:59Z</dc:date>
    <item>
      <title>Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693721#M53798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When returning the name of a Feature Class used to create a Query Layer, the schema name is incorrect. It matches the name of the user in the SDE connection file.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example I'd expect to the see the name with the correct schema owner: dboExample. However I get userA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create a Feature Layer with the same SDE connection the correct name is returned:&amp;nbsp;assrsde.dboExample.vertical_units&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This seems like a bug. Tested on 10.3 and Pro 2.3 arcpy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;input &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"...\\userA_Staging_ASSRSDE.sde"&lt;/SPAN&gt;

query &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"SELECT pid_num as parcel, Shape FROM ASSRSDE.dboExample.Vertical_Units WHERE ISNULL(PID_NUM, '') &amp;lt;&amp;gt; ''"&lt;/SPAN&gt;

parcel &lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;MakeQueryLayer_management&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;input_database&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;input&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;out_layer_name&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"memory\\VU"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;query&lt;SPAN class="operator token"&gt;=&lt;/SPAN&gt;query&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="keyword token"&gt;print&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt; arcpy&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;parcel&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;baseName&lt;SPAN class="punctuation token"&gt;.&lt;/SPAN&gt;lower&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="comment token"&gt;# returns: assrsde.userA.vertical_units‍‍‍‍‍‍‍‍‍&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:12:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693721#M53798</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-12-12T05:12:10Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693722#M53799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think this is a bug, but by design. The problem is, while your particular example of a Query Layer's SQL statement is relatively straightforward pulling just a small record set from a single Feature Class, in reality a SQL statement for a Query Layer can have many forms, it can be a statement with SUM and GROUP BY, JOIN data of multiple Feature Classes or other sub queries etc. Contrary to Feature Layers, that just reference a single Feature Class (although that might be a database view), there is no real single data source for a Query Layer, and as such, the schema is likely undefined as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Apr 2019 17:20:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693722#M53799</guid>
      <dc:creator>MarcoBoeringa</dc:creator>
      <dc:date>2019-04-21T17:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693723#M53800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your reply. That makes some sense.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess I'll need to alias the table. Connecting as the schema owner just to get the correct name from a simple query is overkill.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 15:58:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693723#M53800</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2019-04-22T15:58:58Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693724#M53801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can't even alias my way out of this problem (example 1). Describe still returns the connected user as the schema owner. It even seems arbitrary which table name is returned (example 2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;input &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;"...\\&lt;STRONG&gt;userA&lt;/STRONG&gt;_Staging_ASSRSDE.sde"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;CODE&gt;query = """SELECT pid_num as parcel FROM ASSRSDE.&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;dboExample&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;CODE&gt;.vertical_units "ASSRSDE.&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;dboExample&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE&gt;.vertical_units" """
parcel &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;MakeQueryLayer_management&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;input_database&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;input&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;out_layer_name&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit; font-size: 14px;"&gt;"memory\\VU"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;query&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;query&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;print&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt; arcpy&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;parcel&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;baseName&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit; font-size: 14px;"&gt;# returns: 'ASSRSDE.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;STRONG&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #669900; border: 0px;"&gt;userA&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.%vertical_units'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;input &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit;"&gt;=&lt;/SPAN&gt; &lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;"...\\&lt;STRONG&gt;userA&lt;/STRONG&gt;_Staging_ASSRSDE.sde"&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;&lt;CODE&gt;query = "SELECT ta.pid_num as parcel FROM ASSRSDE.&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;dboExample&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;CODE&gt;&lt;CODE&gt;.tableA ta, ASSRSDE.&lt;/CODE&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit;"&gt;dboExample&lt;/SPAN&gt;&lt;/CODE&gt;&lt;CODE&gt;&lt;CODE&gt;.vertical_units"
parcel &lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt; arcpy&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;MakeQueryLayer_management&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;input_database&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;input&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;out_layer_name&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit; font-size: 14px;"&gt;"memory\\VU"&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;,&lt;/SPAN&gt;query&lt;SPAN class="" style="color: #a67f59; background: rgba(255, 255, 255, 0.5); border: 0px; font-weight: inherit; font-size: 14px;"&gt;=&lt;/SPAN&gt;query&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="" style="color: #0077aa; border: 0px; font-weight: inherit; font-size: 14px;"&gt;print&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt; arcpy&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;Describe&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;(&lt;/SPAN&gt;parcel&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.&lt;/SPAN&gt;baseName&lt;SPAN class="" style="color: #999999; border: 0px; font-weight: inherit; font-size: 14px;"&gt;)&lt;/SPAN&gt;

&lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit; font-size: 14px;"&gt;# returns: 'ASSRSDE.&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/CODE&gt;&lt;STRONG&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: #669900; border: 0px;"&gt;userA&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/STRONG&gt;&lt;CODE&gt;&lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit; font-size: 14px;"&gt;.%vertical_unis'&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2021 05:12:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693724#M53801</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2021-12-12T05:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693725#M53802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Likely unrelated, but your output layer name is odd.&amp;nbsp; Are you specifying "memory" in the name because you want the name "memory" in the layer name, or are you trying to create the layer in a specific workspace?&amp;nbsp; Layers and table views are created in-memory by default, you don't have to put the in-memory workspace in the name.&amp;nbsp; In fact, doing so might cause odd behavior.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 18:43:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693725#M53802</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-04-22T18:43:32Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693726#M53803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The results you are seeing are being driven by the connection properties on &lt;CODE&gt;&lt;SPAN class=""&gt;userA_Staging_ASSRSDE.sde&lt;/SPAN&gt;&lt;/CODE&gt;. What are the connection properties in the connection file?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 18:45:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693726#M53803</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-04-22T18:45:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693727#M53804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Joshua -&lt;BR /&gt;&lt;BR /&gt;The connection is SQL Server with Database Authentication.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 19:53:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693727#M53804</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2019-04-22T19:53:59Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693728#M53805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And I am guessing the database user is "userA".&amp;nbsp; At this point, I am more confused about what you are attempting to describe by using Describe the way you are rather than the results being returned.&amp;nbsp; What information are you trying to get from looking up the baseName property of a feature layer?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 20:58:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693728#M53805</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-04-22T20:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693729#M53806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was expecting that arcpy.Describe would return the fully qualified name of the Query Layer. This would show the true schema owner, as opposed to the user that is connected. In the several examples i've&amp;nbsp;shown my desired return from Describe().baseName:&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; font-size: 14px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="color: #669900; border: 0px; font-weight: inherit; font-size: 14px;"&gt;ASSRSDE.dboExample.Vertical_Units&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;what I get is:&lt;/P&gt;&lt;PRE class="" style="color: #000000; background: #f5f2f0; border: 0px; font-size: 14px; margin: 0.5em 0px; padding: 1em 1em 1em 3.8em;"&gt;&lt;CODE style="border: 0px; font-weight: inherit; font-size: 14px;"&gt;&lt;SPAN class="" style="color: slategray; border: 0px; font-weight: inherit; font-size: 14px;"&gt;assrsde.userA.vertical_units &amp;lt;- User connected (Input_database parameter)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the very least, if I am aliasing a table in the FROM clause it would be nice if that was honored as the baseName.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Apr 2019 21:16:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693729#M53806</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2019-04-22T21:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693730#M53807</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ask the following in all seriousness, what is your idea of a "fully qualified name" for a Query Layer?&amp;nbsp; Is the fully qualified name the first table referenced in the SQL that defines the Query Layer?&amp;nbsp; Or, is the fully qualified name the name of the layer file on disk when/if the Query Layer is exported as a layer file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think this boils down to a difference between expectations and implementation, i.e., Esri's implementation of Arcpy Describe's &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;baseName&lt;/SPAN&gt; for feature layers and table views doesn't line up with what you would like to see.&amp;nbsp; That said, I don't think Esri's implementation is necessarily wrong, just poorly documented.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looking at the &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/describe.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/functions/describe.htm"&gt;Describe—ArcPy Functions | ArcGIS Desktop&lt;/A&gt;&amp;nbsp; documentation, &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;baseName&lt;/SPAN&gt; is a &lt;A class="link-titled" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/describe-object-properties.htm" title="https://pro.arcgis.com/en/pro-app/arcpy/functions/describe-object-properties.htm"&gt;Describe object&lt;/A&gt;&amp;nbsp; property,&amp;nbsp; i.e., it is a generic property and not a property specific to feature layers or table views.&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;DIV class="" style="color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;H2 style="font-weight: 300; font-style: normal; margin: 10px 0px 1.55rem; font-size: 1.9994rem; line-height: 2.325rem;"&gt;Summary&lt;/H2&gt;&lt;P style="margin-top: 0px; margin-bottom: 1.55rem;"&gt;The&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="" style="font-weight: bold;"&gt;Describe&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;function returns the following properties for all&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A class="" href="https://pro.arcgis.com/en/pro-app/arcpy/functions/describe.htm" style="color: #0074b8; text-decoration: none;"&gt;Describe&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;objects.&lt;/P&gt;&lt;/DIV&gt;&lt;DIV class="" style="color: #4c4c4c; font-family: 'Avenir Next W01', 'Avenir Next W00', 'Avenir Next', Avenir, 'Helvetica Neue', sans-serif; font-size: 17px; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: 400; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial;"&gt;&lt;H2 style="font-weight: 300; font-style: normal; margin: 30px 0px 1.55rem; font-size: 1.9994rem; line-height: 2.325rem;"&gt;Properties&lt;/H2&gt;&lt;TABLE style="margin-bottom: 1.55rem; width: 727.333px; border-collapse: collapse; border-spacing: 0px; border: 1px solid #cccccc; text-align: left; overflow: auto; font-size: 0.875rem; line-height: 1.55rem;"&gt;&lt;THEAD style="background-color: #efefef; border-bottom: 1px solid #cccccc; font-weight: 400; font-style: normal; font-size: 1rem; line-height: 1.55rem;"&gt;&lt;TR style="border-bottom: none; text-align: left;"&gt;&lt;TD class="" style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;Property&lt;/TD&gt;&lt;TD class="" style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;Explanation&lt;/TD&gt;&lt;TD class="" style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;Data Type&lt;/TD&gt;&lt;/TR&gt;&lt;/THEAD&gt;&lt;TBODY style="overflow: auto; width: 727.333px;"&gt;&lt;TR style="border-bottom: 1px solid #cccccc; text-align: left;"&gt;&lt;TD style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;baseName&lt;DIV class=""&gt;(Read Only)&lt;/DIV&gt;&lt;/TD&gt;&lt;TD style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;&lt;P style="margin-top: 0px; margin-bottom: 0px;"&gt;The file base name&lt;/P&gt;&lt;/TD&gt;&lt;TD style="font-weight: 300; border-left: 1px solid #cccccc; border-right: 1px solid #cccccc; padding: 0.51667rem;"&gt;String&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, what does "file base name" mean in the context of something like feature layers or table views that don't exist as a file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For several Describe object properties (&lt;SPAN style="font-family: courier new, courier, monospace;"&gt;baseName&lt;/SPAN&gt;, &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;catalogPath&lt;/SPAN&gt;, &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;path&lt;/SPAN&gt;) of feature layers and table views, Esri maps the properties to the properties of the underlying data source.&amp;nbsp; I personally disagree with this decision; but regardless of my personal view, Esri doesn't document this decision and it leads to confusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Query layers represent a unique kind of feature layer because the data source isn't a specific feature class or table, but an SQL statement.&amp;nbsp; When a feature layer references a feature class, the mapping of &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;baseName&lt;/SPAN&gt; to the underlying &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;baseName&lt;/SPAN&gt; of the data source is straightforward; however, that mapping gets much more complicated when an SQL statement can reference any number of feature classes or tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have specific suggestions/ideas on how baseName should be populated with query layers, the path forward at this point is to submit an &lt;A href="https://community.esri.com/space/2167"&gt;ArcGIS Ideas&lt;/A&gt;‌ and a formal Enhancement Request through Esri Support.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 15:29:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693730#M53807</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-04-24T15:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693731#M53808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The fully qualified name is the name given in the database. This would include the schema owner rather than the connected user schema. Given the scenario I've discussed at length this is what I would expect:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;baseName:&amp;nbsp;&lt;SPAN&gt;If I've aliased a table in the FROM clause it should return the alias, if I haven't and there is one table in the FROM clause it should return the full name [Database].[OwnerSchema].[Object], and&amp;nbsp;if for some stupid reason im selecting a cartesian product there should be well documented logic to what name is going to be returned. Regardless, the name should include the owner schema.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;name:&amp;nbsp;&lt;SPAN&gt;Returns the name I've given the Query Layer in the out_layer_name parameter.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;I'd submit an Idea if I thought it would get enough votes to make a difference. At this point I'm assuming it won't get traction.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 16:21:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693731#M53808</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2019-04-24T16:21:15Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693732#M53809</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As much as you may be right about the Idea not getting traction, there are lots of factors that motivate developers, and maybe being made aware of the issue might get one of them thinking about it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do databases name SQL queries from clients that don't persist as tables, views, etc... in the database?&amp;nbsp; If you created an SQL statement and saved it as a view in the database, it still wouldn't give you want you want because what is returned would be the schema containing the view and not what schemas are referenced in the SQL defining the view.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 19:12:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693732#M53809</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2019-04-24T19:12:19Z</dc:date>
    </item>
    <item>
      <title>Re: Arcpy Describe returns connected user as schema owner</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693733#M53810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't think there is a parallel in MSSQL. Results are passed to clients without generating a schema in the database. I couldn't pass a query and find some log parameter that would show a schema name for my connection.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Apr 2019 21:58:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-describe-returns-connected-user-as-schema/m-p/693733#M53810</guid>
      <dc:creator>PhilLarkin1</dc:creator>
      <dc:date>2019-04-24T21:58:21Z</dc:date>
    </item>
  </channel>
</rss>

