<?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 Updating Field Alias Names Using SQL Management Studio ----&amp;gt; ArcSDE 10.x in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334994#M19036</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see that field alias names in ArcSDE 10.x are in the GDB_Items table stuffed into an xml.&amp;nbsp; Formerly in 9.x field aliases could be easily updated en masse in the GDB_FIELDINFO table.&amp;nbsp; Anybody know the best/easiest/fastest way to update field aliases in 10.x using SQL Management Studio, if there is one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan Schall&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stowe, VT&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Sep 2012 23:32:28 GMT</pubDate>
    <dc:creator>deleted-user-74-8Fy1vCPqk</dc:creator>
    <dc:date>2012-09-17T23:32:28Z</dc:date>
    <item>
      <title>Updating Field Alias Names Using SQL Management Studio ----&gt; ArcSDE 10.x</title>
      <link>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334994#M19036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I see that field alias names in ArcSDE 10.x are in the GDB_Items table stuffed into an xml.&amp;nbsp; Formerly in 9.x field aliases could be easily updated en masse in the GDB_FIELDINFO table.&amp;nbsp; Anybody know the best/easiest/fastest way to update field aliases in 10.x using SQL Management Studio, if there is one?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan Schall&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Stowe, VT&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Sep 2012 23:32:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334994#M19036</guid>
      <dc:creator>deleted-user-74-8Fy1vCPqk</dc:creator>
      <dc:date>2012-09-17T23:32:28Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Field Alias Names Using SQL Management Studio ----&gt; ArcSDE 10.x</title>
      <link>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334995#M19037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Got same question here. have you sorted it out?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Jan 2013 22:43:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334995#M19037</guid>
      <dc:creator>JackZHANG</dc:creator>
      <dc:date>2013-01-23T22:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Field Alias Names Using SQL Management Studio ----&gt; ArcSDE 10.x</title>
      <link>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334996#M19038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Jack-&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oof.....that was a while ago and if I remember correctly I either didn't do it, or did it the hard way. &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Sorry I can't be of better help!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Dan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Mar 2013 17:17:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334996#M19038</guid>
      <dc:creator>deleted-user-74-8Fy1vCPqk</dc:creator>
      <dc:date>2013-03-06T17:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Field Alias Names Using SQL Management Studio ----&gt; ArcSDE 10.x</title>
      <link>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334997#M19039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;First, vote up the idea of a geoprocessing tool so we can update many fields (not one at a time in ArcCatalog):&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://ideas.arcgis.com/ideaView?id=087300000008IBT&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26category%3DService%2BIdeas%26p%3D2"&gt;http://ideas.arcgis.com/ideaView?id=087300000008IBT&amp;amp;returnUrl=%2Fapex%2FideaList%3Fc%3D09a300000004xET%26category%3DService%2BIdeas%26p%3D2&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I purposely moved away from database table updates because of the system table changes.&amp;nbsp; There is also a VB method, but that too accessed the tables directly.&amp;nbsp; Here are the methods I know of:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Update using Python and ctypes.&amp;nbsp; This is a heavy work around.&amp;nbsp; Depending on your workflow, might be good.&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://gis.stackexchange.com/questions/255/arcgis-change-feature-class-and-field-aliases-in-bulk"&gt;http://gis.stackexchange.com/questions/255/arcgis-change-feature-class-and-field-aliases-in-bulk&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Currently, I'm using custom python scripting with FeatureClassToFeatureClass_conversion.&amp;nbsp; Basically creates the FeatureClassToFeatureClass_conversion statement.&amp;nbsp; While creating the statement, does a lookup in a csv file for fieldname and the appropriate field alias name.&amp;nbsp; Ctypes above does this same type method.&amp;nbsp; Hate this idea for numerous reasons (not updated in place, more required scripting to obtain other source database features: Domains, subtypes, attribute indexes, etc.).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Some Studio incarnation must be out there.&amp;nbsp; I'm a database guy, so come on Application Developers!&amp;nbsp; Chris Fox may have well done this, as stated in his response in MyIdeas.&amp;nbsp; Here's his toolbox as refered to in the MyIdeas suggestion:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://www.arcgis.com/home/item.html?id=4c0bcc95449f4a67822c7f68dc7c6cd4"&gt;http://www.arcgis.com/home/item.html?id=4c0bcc95449f4a67822c7f68dc7c6cd4&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;I tried this, but our local machines are so tied down, I can hardly breathe.:rolleyes:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&amp;nbsp; Remember, vote up in MyIdeas.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Mar 2013 11:00:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334997#M19039</guid>
      <dc:creator>RayChilcote</dc:creator>
      <dc:date>2013-03-07T11:00:50Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Field Alias Names Using SQL Management Studio ----&gt; ArcSDE 10.x</title>
      <link>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334998#M19040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The only way to do this is with xquery (xml-sql query), as field alias' live inside sde_items (or something similar). Your xquery would have to find the right xml node and update. Hard, but doable, and worth it only if you have to do millions of FC's. by the time you're done writing the xquery syntax, you would have been long done doing it through arc cat.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Mar 2013 20:44:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334998#M19040</guid>
      <dc:creator>ThomasColson</dc:creator>
      <dc:date>2013-03-08T20:44:10Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Field Alias Names Using SQL Management Studio ----&gt; ArcSDE 10.x</title>
      <link>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334999#M19041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;In case of updating existing Alias only second query can be run.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the Alias does not exist yet both queries have to be run - please remember to change your ObjectIDs:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/*remove the node in case there is no value yet in the database for the Allias name */
update sde.GDB_ITEMS 
set Definition.modify('delete(/DEFeatureClassInfo/AliasName)')
/*Provide the ObjectId of the feature class - can be checked in properties ArcCatalog 10.1 */
WHERE ObjectId = 1218&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;/* Provide new alias name in the variable below */
DECLARE @AliasName VARCHAR(1024) = 'Area Committees'
UPDATE sde.GDB_ITEMS
SET Definition.modify('insert &amp;lt;AliasName&amp;gt;{sql:variable("@AliasName")}&amp;lt;/AliasName&amp;gt; into(/DEFeatureClassInfo)[1]')
/*Provide the ObjectId of the feature class - can be checked in properties ArcCatalog 10.1 */
WHERE OBJECTID=1218&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 15:52:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/334999#M19041</guid>
      <dc:creator>AndrzejBieniek</dc:creator>
      <dc:date>2021-12-11T15:52:15Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Field Alias Names Using SQL Management Studio ----&gt; ArcSDE 10.x</title>
      <link>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/335000#M19042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;On a semi-related note, in the upcoming 10.2.1 there will be a GP tool (alter field properties) that will allow you to rename a field as well as change the field alias. So if you can wait until the 10.2.1 release and are willing to use geoprocessing this should help you out.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Nov 2013 14:38:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/335000#M19042</guid>
      <dc:creator>RussellBrennan</dc:creator>
      <dc:date>2013-11-06T14:38:07Z</dc:date>
    </item>
    <item>
      <title>Re: Updating Field Alias Names Using SQL Management Studio ----&gt; ArcSDE 10.x</title>
      <link>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/335001#M19043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I do this in python to update my publication date in the metadata when I truncate and fill a layer from our edit database to our main database.&amp;nbsp; It works pretty well for me. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;def UpdateMetadataPublicationDate(LayerToUpdate):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; LayerToUpdate = string.split(LayerToUpdate,'\\')[-1]&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sde = r'Database Connections\SDE.sde'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sde_conn = arcpy.ArcSDESQLExecute(sde)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sql = '''USE GIS;DECLARE @now varchar(19) = convert(varchar(19),GETDATE(), 126);UPDATE GIS.sde.GDB_ITEMS SET Documentation.modify('replace value of (//metadata/dataIdInfo/idCitation/date/pubDate/text())[1] with sql:variable({0})') where Name = \'{1}\''''.format('\"@now\"',LayerToUpdate)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sde_conn.startTransaction()&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sde_conn.execute(sql)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sde_conn.commitTransaction()&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2016 15:38:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/updating-field-alias-names-using-sql-management/m-p/335001#M19043</guid>
      <dc:creator>MichelleMestrovich1</dc:creator>
      <dc:date>2016-04-13T15:38:13Z</dc:date>
    </item>
  </channel>
</rss>

