<?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: Update stand alone sql table in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819266#M2756</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct&amp;nbsp;it's just a&amp;nbsp;sql table in database NOT a geodatabase.&amp;nbsp; My end goal to to have a sql table with a common field with my feature layer and the two joined so I can label my feature layer using a field from the sql table since I'm not allowed to edit the feature layer.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is there a better way to achieve what I need to do?&amp;nbsp; Thank you Rich.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Jul 2020 13:14:58 GMT</pubDate>
    <dc:creator>helenchu</dc:creator>
    <dc:date>2020-07-22T13:14:58Z</dc:date>
    <item>
      <title>Update stand alone sql table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819264#M2754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I'd like to update my stand alone sql table base on values returned from my selection set.&amp;nbsp; I was able to get the selection part but I couldn't find any snippets for&amp;nbsp;updating sql table. &amp;nbsp;Thank you for your help.&amp;nbsp; Your help is greatly appreciated.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2020 18:09:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819264#M2754</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2020-07-21T18:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Update stand alone sql table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819265#M2755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just to clarify, when you say "stand alone sql table base" are you referring to a table in a database&amp;nbsp;and not a geodatabase? &amp;nbsp;That is, a database that has not been registered as a&amp;nbsp;geodatabase?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Jul 2020 23:09:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819265#M2755</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-07-21T23:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update stand alone sql table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819266#M2756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Correct&amp;nbsp;it's just a&amp;nbsp;sql table in database NOT a geodatabase.&amp;nbsp; My end goal to to have a sql table with a common field with my feature layer and the two joined so I can label my feature layer using a field from the sql table since I'm not allowed to edit the feature layer.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Or is there a better way to achieve what I need to do?&amp;nbsp; Thank you Rich.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 13:14:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819266#M2756</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2020-07-22T13:14:58Z</dc:date>
    </item>
    <item>
      <title>Re: Update stand alone sql table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819267#M2757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The Pro SDK doesn't allow you to edit non-geodatabase tables. &amp;nbsp;You could either add that SQL table to a geodatabase, or edit it using non-ArcGIS routines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The easiest solution would be to register the table with a geodatabase? &amp;nbsp;Is there a reason you cannot do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. Technically, you can also edit a non-geodatabasea table if it is published as part of a feature service, but that seems like using a sledgehammer to hang a picture frame.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Jul 2020 23:32:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819267#M2757</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-07-22T23:32:09Z</dc:date>
    </item>
    <item>
      <title>Re: Update stand alone sql table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819268#M2758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rich,&lt;/P&gt;&lt;P&gt;I'm a little confused here so let's clarify more about my table.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Yes I can have my table live inside a geodatabase but my table is &lt;SPAN style="background-color: #fefefe; color: #4d4d4d;"&gt;just a tabular table.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #fefefe; color: #4d4d4d;"&gt;In ArcObjects for Arcmap addin, I used these codes to update&amp;nbsp;a sql&amp;nbsp;table doesn't matter where&amp;nbsp;my table is.&amp;nbsp; So you say in ProSDK I can no longer do that?&amp;nbsp; Thanks Rich!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; sqlConnection &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;New&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; SqlConnection(sConStr)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;Dim&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; cmdUpdate &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;As&lt;/SPAN&gt; &lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;New&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; SqlCommand&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmdUpdate.Connection = sqlConnection&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmdUpdate.CommandType = CommandType.StoredProcedure&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmdUpdate.CommandText = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"sp_CalculateRate"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmdUpdate.Parameters.Add(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;New&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; SqlParameter &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;With&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; {.ParameterName = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"@ABCD"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;, .SqlDbType = SqlDbType.VarChar, .Value = str&lt;SPAN style="color: #a31515;"&gt;ABCD&lt;/SPAN&gt;})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmdUpdate.Parameters.Add(&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;New&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; SqlParameter &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: blue;"&gt;With&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt; {.ParameterName = &lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: #a31515;"&gt;"@EFGH"&lt;/SPAN&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;, .SqlDbType = SqlDbType.VarChar, .Value = str&lt;SPAN style="color: #a31515;"&gt;EFGH&lt;/SPAN&gt;})&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sqlConnection.Open()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmdUpdate.ExecuteNonQuery()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; cmdUpdate.Dispose()&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9.5pt; color: black;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sqlConnection.Close()&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2020 15:36:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819268#M2758</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2020-07-23T15:36:25Z</dc:date>
    </item>
    <item>
      <title>Re: Update stand alone sql table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819269#M2759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Helen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code you have listed, using the SqlConnection and SqlCommand classes, comes from a Microsoft library, not from ArcObjects. &amp;nbsp;You can continue to use it just fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2020 16:13:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819269#M2759</guid>
      <dc:creator>RichRuh</dc:creator>
      <dc:date>2020-07-23T16:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: Update stand alone sql table</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819270#M2760</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rich!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 24 Jul 2020 15:43:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/update-stand-alone-sql-table/m-p/819270#M2760</guid>
      <dc:creator>helenchu</dc:creator>
      <dc:date>2020-07-24T15:43:03Z</dc:date>
    </item>
  </channel>
</rss>

