<?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 Cannot use Select By Attributes or Def Query with Join in Versioned SDE in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/cannot-use-select-by-attributes-or-def-query-with/m-p/625731#M24074</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working in a company that uses a versioned SDE database to manage our work flows and we have run into the following problem, when a user, who is not the administrator of the SDE database, creates a feature class it gets tagged with that users ID in the SDE database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USA."CompanyName\user".USA_Counties as apposed to the administrator created file which looks like USA.DBO.USA_Counties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This isn't a huge issue except when you attempt to join the attribute table of this feature class to another table and then query it using either select by attributes or a definition query because instead of using field aliases arc populates the GUI with full field names that include the "" and \ which precipitates a error when you try to write a query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USA."CompanyName\user".USA_Counties.County_Name = 'Greene' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"There was a problem selecting&lt;/P&gt;&lt;P&gt;An invalid SQL statement was used."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of a work around so that our users can create their own content and still use basic functionality or is the only solution that the DBO administrator has to create all of the content for our entire company?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wllm1313&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product Version 10.2.2.3552&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 03 Dec 2014 21:16:50 GMT</pubDate>
    <dc:creator>WillJames</dc:creator>
    <dc:date>2014-12-03T21:16:50Z</dc:date>
    <item>
      <title>Cannot use Select By Attributes or Def Query with Join in Versioned SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/cannot-use-select-by-attributes-or-def-query-with/m-p/625731#M24074</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working in a company that uses a versioned SDE database to manage our work flows and we have run into the following problem, when a user, who is not the administrator of the SDE database, creates a feature class it gets tagged with that users ID in the SDE database. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USA."CompanyName\user".USA_Counties as apposed to the administrator created file which looks like USA.DBO.USA_Counties&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This isn't a huge issue except when you attempt to join the attribute table of this feature class to another table and then query it using either select by attributes or a definition query because instead of using field aliases arc populates the GUI with full field names that include the "" and \ which precipitates a error when you try to write a query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.G.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;USA."CompanyName\user".USA_Counties.County_Name = 'Greene' &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"There was a problem selecting&lt;/P&gt;&lt;P&gt;An invalid SQL statement was used."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anyone know of a work around so that our users can create their own content and still use basic functionality or is the only solution that the DBO administrator has to create all of the content for our entire company?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Wllm1313&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Product Version 10.2.2.3552&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Dec 2014 21:16:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/cannot-use-select-by-attributes-or-def-query-with/m-p/625731#M24074</guid>
      <dc:creator>WillJames</dc:creator>
      <dc:date>2014-12-03T21:16:50Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use Select By Attributes or Def Query with Join in Versioned SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/cannot-use-select-by-attributes-or-def-query-with/m-p/625732#M24075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) The query syntax issue is likely caused by the special character which separates the domain and the user's name.&lt;/P&gt;&lt;P&gt;2) The solution to this issue is to use a named database user for creating data.&amp;nbsp; We typically do not allow users to create new tables in the primary production SDE geodatabase.&amp;nbsp; There is a "super user" who uses the schema account (database.CARTO.Landmarks) to create a new table when needed, and the other users (via OS auth) modify data within those existing tables.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 17:13:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/cannot-use-select-by-attributes-or-def-query-with/m-p/625732#M24075</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-19T17:13:36Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use Select By Attributes or Def Query with Join in Versioned SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/cannot-use-select-by-attributes-or-def-query-with/m-p/625733#M24076</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Marianne,&lt;/P&gt;&lt;P&gt;I appreciate your response but it doesn't answer my question; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Does anyone know of a work around so that our users can create their own content and still use basic functionality or is the only solution that the DBO administrator has to create all of the content for our entire company"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;We currently use the "solution" your propose but this is cumbersome as we have 30+ users in one database and having each person request the admin to create tables/featureclasses wastes a lot of time.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Will&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 18:45:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/cannot-use-select-by-attributes-or-def-query-with/m-p/625733#M24076</guid>
      <dc:creator>WillJames</dc:creator>
      <dc:date>2014-12-19T18:45:53Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use Select By Attributes or Def Query with Join in Versioned SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/cannot-use-select-by-attributes-or-def-query-with/m-p/625734#M24077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The other solution I offer is using a named database user, i.e., each user who needs to create a table must use a database user instead of OS authentication.&amp;nbsp; That would remove the special character which I think is creating your query issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't reproduce this issue--what database platform are you using?&amp;nbsp; From your description, I assumed SQL Server...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 18:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/cannot-use-select-by-attributes-or-def-query-with/m-p/625734#M24077</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-19T18:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Cannot use Select By Attributes or Def Query with Join in Versioned SDE</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/cannot-use-select-by-attributes-or-def-query-with/m-p/625735#M24078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I just had another thought: is it possible that the SDE administrator, in an attempt to track user's tables, has created a Default Schema for each user? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have SQL Server Management Studio, check a user's properties for the default schema.&amp;nbsp; The value you see there is the middle value of the three-tier naming convention in SQL Server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Dec 2014 21:12:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/cannot-use-select-by-attributes-or-def-query-with/m-p/625735#M24078</guid>
      <dc:creator>Anonymous User</dc:creator>
      <dc:date>2014-12-19T21:12:03Z</dc:date>
    </item>
  </channel>
</rss>

