<?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: Refresh SQL Server Native Client after renaming a Field? in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-sql-server-native-client-after-renaming-a/m-p/256948#M6583</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to reconnect to the Workspace, and look for the Feature-Class, again. Then only use the new FC-Object and dispose the old one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Oct 2016 11:02:11 GMT</pubDate>
    <dc:creator>MickeyO_Neil</dc:creator>
    <dc:date>2016-10-19T11:02:11Z</dc:date>
    <item>
      <title>Refresh SQL Server Native Client after renaming a Field?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-sql-server-native-client-after-renaming-a/m-p/256946#M6581</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I renamed a Field of a FeatureClass in an ArcSDE with the IClassSchemaEdit4.AlterFieldName Method.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;This works fine, but as soon as I create a Cursor to iterate the FeatureClass I get an SQL Server Native Client Error, which can't find the old(!!) Fieldname in the Database.&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="plain" name="code"&gt;m_pCursor = pFeatureClass.Search(Nothing, False)&lt;/PRE&gt;&lt;DIV style="display:none;"&gt; &lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;But if i look for the renamed Field in the FeatureClass everything is fine --&amp;gt; I can't find the old fieldname and the new one is there.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have no idea why the Native Client is looking for the old Fieldname? Do I have to refresh the Client somehow?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If I restart my application or look at the FeatureClass with ArcCatalog everything works fine.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Any idea whats going on with the Microsoft SQL Server Native Client 10.0?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mickey&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 May 2013 15:31:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-sql-server-native-client-after-renaming-a/m-p/256946#M6581</guid>
      <dc:creator>MickeyO_Neil</dc:creator>
      <dc:date>2013-05-29T15:31:00Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh SQL Server Native Client after renaming a Field?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-sql-server-native-client-after-renaming-a/m-p/256947#M6582</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We're currently encountering a similar issue. Have you ever found a resolution to this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Oct 2015 14:33:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-sql-server-native-client-after-renaming-a/m-p/256947#M6582</guid>
      <dc:creator>AndryJoos</dc:creator>
      <dc:date>2015-10-07T14:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh SQL Server Native Client after renaming a Field?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-sql-server-native-client-after-renaming-a/m-p/256948#M6583</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have to reconnect to the Workspace, and look for the Feature-Class, again. Then only use the new FC-Object and dispose the old one.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 11:02:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-sql-server-native-client-after-renaming-a/m-p/256948#M6583</guid>
      <dc:creator>MickeyO_Neil</dc:creator>
      <dc:date>2016-10-19T11:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Refresh SQL Server Native Client after renaming a Field?</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-sql-server-native-client-after-renaming-a/m-p/256949#M6584</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mickey, thanks for your answer. While this would resolve the problem, it does not work for us in a performance critical environment where reconnecting to the workspace is not an option. We have, while exploring workarounds, found a way to avoid our original problem. Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 18:29:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/refresh-sql-server-native-client-after-renaming-a/m-p/256949#M6584</guid>
      <dc:creator>AndryJoos</dc:creator>
      <dc:date>2016-10-19T18:29:53Z</dc:date>
    </item>
  </channel>
</rss>

