<?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 SQL Statement GeoDatabase vs SDE in ArcPad Questions</title>
    <link>https://community.esri.com/t5/arcpad-questions/sql-statement-geodatabase-vs-sde/m-p/707257#M5157</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;CANT UPDATE STANDALONE SDE TABLE in ARcPAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have code that is running fine from a Geodatabase...there is a standalone table that is related to a FC....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a SQL statment to write to this table and create historical records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem starts when I move the data to SDE and try and do the same....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I simply imported the Geodatabase into my SDE...the FC point is in a dataset with the relationship class, and the standalone table is at the root. Now the SQL statement below errors saying cant find table&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Could the . (periods) in the code below be causing the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Could the fact that the data is not in the same dataset be the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works with the Geodatabase&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE&gt;sSQL = "INSERT INTO OUFALLS_HISTORICAL (INSPECT_BY, UNIQUE_ID1, UNIQUE_ID, OF_RECWTR, INSPECT_YR, GRATE_, CONDTN, AXF_TIMESTAMP, AXF_STATUS) VALUES ('" &amp;amp; varcbo_User &amp;amp; "', '" &amp;amp; vartxtUniqueID &amp;amp; "', '" &amp;amp; vartxtUniqueID &amp;amp; "', '" &amp;amp; varreceivewater &amp;amp; "', '" &amp;amp; vardate &amp;amp; "', '" &amp;amp; vargrate &amp;amp; "', '" &amp;amp; varcondition &amp;amp; "', getDate(), 1)" &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try this with the SDE data and it wont work....&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE&gt;sSQL = "INSERT INTO MG_SDE.MG_GENERAL.outfalls_historical (INSPECT_BY, UNIQUE_ID1, UNIQUE_ID, OF_RECWTR, INSPECT_YR, GRATE_, CONDTN, AXF_TIMESTAMP, AXF_STATUS) VALUES ('" &amp;amp; varcbo_User &amp;amp; "', '" &amp;amp; vartxtUniqueID &amp;amp; "', '" &amp;amp; vartxtUniqueID &amp;amp; "', '" &amp;amp; varreceivewater &amp;amp; "', '" &amp;amp; vardate &amp;amp; "', '" &amp;amp; vargrate &amp;amp; "', '" &amp;amp; varcondition &amp;amp; "', getDate(), 1)" &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MG_SDE.MG_GENERAL.outfalls_historical has . which must be messing it up?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to change the name of the standalone table, and remove the . ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2011 20:24:36 GMT</pubDate>
    <dc:creator>JayKappy</dc:creator>
    <dc:date>2011-05-16T20:24:36Z</dc:date>
    <item>
      <title>SQL Statement GeoDatabase vs SDE</title>
      <link>https://community.esri.com/t5/arcpad-questions/sql-statement-geodatabase-vs-sde/m-p/707257#M5157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;CANT UPDATE STANDALONE SDE TABLE in ARcPAD&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have code that is running fine from a Geodatabase...there is a standalone table that is related to a FC....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using a SQL statment to write to this table and create historical records.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My problem starts when I move the data to SDE and try and do the same....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I simply imported the Geodatabase into my SDE...the FC point is in a dataset with the relationship class, and the standalone table is at the root. Now the SQL statement below errors saying cant find table&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. Could the . (periods) in the code below be causing the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Could the fact that the data is not in the same dataset be the problem?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This works with the Geodatabase&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE&gt;sSQL = "INSERT INTO OUFALLS_HISTORICAL (INSPECT_BY, UNIQUE_ID1, UNIQUE_ID, OF_RECWTR, INSPECT_YR, GRATE_, CONDTN, AXF_TIMESTAMP, AXF_STATUS) VALUES ('" &amp;amp; varcbo_User &amp;amp; "', '" &amp;amp; vartxtUniqueID &amp;amp; "', '" &amp;amp; vartxtUniqueID &amp;amp; "', '" &amp;amp; varreceivewater &amp;amp; "', '" &amp;amp; vardate &amp;amp; "', '" &amp;amp; vargrate &amp;amp; "', '" &amp;amp; varcondition &amp;amp; "', getDate(), 1)" &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I try this with the SDE data and it wont work....&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE&gt;sSQL = "INSERT INTO MG_SDE.MG_GENERAL.outfalls_historical (INSPECT_BY, UNIQUE_ID1, UNIQUE_ID, OF_RECWTR, INSPECT_YR, GRATE_, CONDTN, AXF_TIMESTAMP, AXF_STATUS) VALUES ('" &amp;amp; varcbo_User &amp;amp; "', '" &amp;amp; vartxtUniqueID &amp;amp; "', '" &amp;amp; vartxtUniqueID &amp;amp; "', '" &amp;amp; varreceivewater &amp;amp; "', '" &amp;amp; vardate &amp;amp; "', '" &amp;amp; vargrate &amp;amp; "', '" &amp;amp; varcondition &amp;amp; "', getDate(), 1)" &lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;MG_SDE.MG_GENERAL.outfalls_historical has . which must be messing it up?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Do I need to change the name of the standalone table, and remove the . ?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2011 20:24:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/sql-statement-geodatabase-vs-sde/m-p/707257#M5157</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-05-16T20:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statement GeoDatabase vs SDE</title>
      <link>https://community.esri.com/t5/arcpad-questions/sql-statement-geodatabase-vs-sde/m-p/707258#M5158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;STRONG&gt;Think I got it....&lt;/STRONG&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 12:37:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/sql-statement-geodatabase-vs-sde/m-p/707258#M5158</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-05-17T12:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: SQL Statement GeoDatabase vs SDE</title>
      <link>https://community.esri.com/t5/arcpad-questions/sql-statement-geodatabase-vs-sde/m-p/707259#M5159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yes got it....I tried every way I could think of to reference the table....&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I then explored i the axf file in studio and found the correct spelling of the table.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I think it is case specific as well...I followed the case and spelling in the axf file and it worked...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Same code as posted above....just changed the name of the table to what was reflected in the axf file.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In ArcMap the table is referenced like this&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;MG_SDE.MG_GENERAL.outfalls_historical &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I then tried this getting rid of the SDE references&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;outfalls_historical &lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Then found the axf file created shows it as &lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;OUTFALLS_HISTORICAL&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;3 different ways to represent the same table...some consistancy would be nice&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 12:47:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcpad-questions/sql-statement-geodatabase-vs-sde/m-p/707259#M5159</guid>
      <dc:creator>JayKappy</dc:creator>
      <dc:date>2011-05-17T12:47:03Z</dc:date>
    </item>
  </channel>
</rss>

