<?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: SQL Server Field Name Length Too Long in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562583#M31932</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two simple workarounds that you could try:&lt;BR /&gt;1. Create a query layer and use and alias for the field name:&lt;/P&gt;&lt;P&gt;select reallyreallyreallylongfieldname as shorterfieldname from table&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/creating-a-query-layer.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/creating-a-query-layer.htm"&gt;Creating a query layer—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create a view in the DBMS and consume the view in ArcMap:&lt;/P&gt;&lt;P&gt;Create view table_vw as&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;select reallyreallyreallylongfieldname as shorterfieldname from table&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Dec 2016 17:31:44 GMT</pubDate>
    <dc:creator>ChristianWells</dc:creator>
    <dc:date>2016-12-20T17:31:44Z</dc:date>
    <item>
      <title>SQL Server Field Name Length Too Long</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562581#M31930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I &amp;nbsp;am connecting to a SQL Server database that has field names greater&amp;nbsp;than 31 characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pretty much any geoprocessing&amp;nbsp;tool fails on a SQL Server table that has&amp;nbsp;field names this long as it is an ArcMap limitation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone know a command that will DUPLICATE the table without causing an error? Possibly by copying and then altering the field name. &lt;STRONG&gt;ALSO&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;I need to use model builder so I can't manipulate/export in ArcMap first.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 17:21:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562581#M31930</guid>
      <dc:creator>GregWhite2</dc:creator>
      <dc:date>2016-12-20T17:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Field Name Length Too Long</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562582#M31931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;One possibility is to have your DBA (or database developer) create a view on the table with shortened field names where needed.&amp;nbsp; We've had to do this with table names and fields that are reserved words in ArcGIS.&amp;nbsp; For example, there was a table named "Transaction" in a straight SQL database.&amp;nbsp; If I recall, ArcCatalog couldn't even see the table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 17:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562582#M31931</guid>
      <dc:creator>RandyKreuziger</dc:creator>
      <dc:date>2016-12-20T17:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Field Name Length Too Long</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562583#M31932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Two simple workarounds that you could try:&lt;BR /&gt;1. Create a query layer and use and alias for the field name:&lt;/P&gt;&lt;P&gt;select reallyreallyreallylongfieldname as shorterfieldname from table&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/creating-a-query-layer.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/map/working-with-layers/creating-a-query-layer.htm"&gt;Creating a query layer—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Create a view in the DBMS and consume the view in ArcMap:&lt;/P&gt;&lt;P&gt;Create view table_vw as&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;select reallyreallyreallylongfieldname as shorterfieldname from table&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 17:31:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562583#M31932</guid>
      <dc:creator>ChristianWells</dc:creator>
      <dc:date>2016-12-20T17:31:44Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Field Name Length Too Long</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562584#M31933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the tip, that maybe the solution. Yeah ArcCatalog kind of crashes when clicking on the table.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 17:33:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562584#M31933</guid>
      <dc:creator>GregWhite2</dc:creator>
      <dc:date>2016-12-20T17:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Field Name Length Too Long</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562585#M31934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I will try the query layer and see if that works!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 17:34:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562585#M31934</guid>
      <dc:creator>GregWhite2</dc:creator>
      <dc:date>2016-12-20T17:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Server Field Name Length Too Long</title>
      <link>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562586#M31935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It doesn't work in this case because the table doesn't have a unique row identifier and the geoprocessing command is not letting me create one from within the SQL window SELECT statement. &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/sad.png" /&gt;&amp;nbsp;I will persue some other avenue - thanks again!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Dec 2016 18:54:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/sql-server-field-name-length-too-long/m-p/562586#M31935</guid>
      <dc:creator>GregWhite2</dc:creator>
      <dc:date>2016-12-20T18:54:45Z</dc:date>
    </item>
  </channel>
</rss>

