<?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 Detecting the presence of an attribute index on a runtime geodatabase class in .NET Maps SDK Questions</title>
    <link>https://community.esri.com/t5/net-maps-sdk-questions/detecting-the-presence-of-an-attribute-index-on-a/m-p/450273#M5480</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am working with a (SQLite) runtime Geodatabase with an app that relies on the presence of several attribute indexes to provide good performance.&amp;nbsp; Is there a way in the ArcGIS runtime .net SDK to detect the presence of an index so I can take some action if its not there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 21 Feb 2017 13:38:51 GMT</pubDate>
    <dc:creator>EdwardBlair</dc:creator>
    <dc:date>2017-02-21T13:38:51Z</dc:date>
    <item>
      <title>Detecting the presence of an attribute index on a runtime geodatabase class</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/detecting-the-presence-of-an-attribute-index-on-a/m-p/450273#M5480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Am working with a (SQLite) runtime Geodatabase with an app that relies on the presence of several attribute indexes to provide good performance.&amp;nbsp; Is there a way in the ArcGIS runtime .net SDK to detect the presence of an index so I can take some action if its not there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Feb 2017 13:38:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/detecting-the-presence-of-an-attribute-index-on-a/m-p/450273#M5480</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2017-02-21T13:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Detecting the presence of an attribute index on a runtime geodatabase class</title>
      <link>https://community.esri.com/t5/net-maps-sdk-questions/detecting-the-presence-of-an-attribute-index-on-a/m-p/450274#M5481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Found my solution.&amp;nbsp; Just added System.Data.SQLite to my project and performed a query directly to the SQLite database to get the indexes present.&lt;/P&gt;&lt;P&gt;Ed&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-family: Consolas; font-size: small;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt; dataSource = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-family: Consolas; font-size: small;"&gt;@"c:\MyDatabase.geodatabase"&lt;/SPAN&gt;&lt;SPAN style="font-family: Consolas; font-size: small;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;SQLiteConnection&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; sqlCon = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;SQLiteConnection&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"Data Source="&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; + dataSource + &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;";Version=3;"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;sqlCon.Open();&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; sqlQuery = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;"Select sql FROM SQLite_master WHERE type = 'index' AND tbl_name = 'MYTABLE'"&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;SQLiteCommand&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; sqlCmd = &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;new&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;SQLiteCommand&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;(sqlQuery, sqlCon);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;SQLiteDataReader&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; sqlRead = sqlCmd.ExecuteReader();&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;string&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; result = &lt;/SPAN&gt;&lt;SPAN style="color: #a31515; font-size: small; font-family: Consolas;"&gt;""&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: small; font-family: Consolas;"&gt;while&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; (sqlRead.Read())&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;{&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt; result += sqlRead[0].ToString() + &lt;/SPAN&gt;&lt;SPAN style="color: #2b91af; font-size: small; font-family: Consolas;"&gt;Environment&lt;/SPAN&gt;&lt;SPAN style="font-size: small; font-family: Consolas;"&gt;.NewLine;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Feb 2017 15:39:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/net-maps-sdk-questions/detecting-the-presence-of-an-attribute-index-on-a/m-p/450274#M5481</guid>
      <dc:creator>EdwardBlair</dc:creator>
      <dc:date>2017-02-22T15:39:18Z</dc:date>
    </item>
  </channel>
</rss>

