<?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: howto post date,guid parameter to sql str when execute sql via IWorkspace.Execute in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/howto-post-date-guid-parameter-to-sql-str-when/m-p/328545#M8551</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;right format is,"Datefield" = date 'yyyy-mm-dd'&lt;BR /&gt;the sql is,"insert into TB1(ClmD) values(date '2012-1-1')"&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/SQL_reference_for_query_expressions_used_in_ArcGIS/00s500000033000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/SQL_reference_for_query_expressions_used_in_ArcGIS/00s500000033000000/&lt;/A&gt;&lt;BR /&gt;this page has the detail about query expressions&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe it all depends upon your underlying database (is it SQL Server, Oracle, etc??) as to how you need to write it to the database.&amp;nbsp; You say "gdb", but what is the database?&amp;nbsp; And does your date field in the db contain the time portion of the date?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All of these factors will affect how you need to store values.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Jun 2012 11:01:32 GMT</pubDate>
    <dc:creator>JamesCrandall</dc:creator>
    <dc:date>2012-06-29T11:01:32Z</dc:date>
    <item>
      <title>howto post date,guid parameter to sql str when execute sql via IWorkspace.ExecuteSQL</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/howto-post-date-guid-parameter-to-sql-str-when/m-p/328542#M8548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;i execute sql use IWorkspace.ExecuteSQL method,the parameter must be&amp;nbsp; string ,what the date,guid format is in the sql string&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i use sql like this, "insert into TB1(ClmD) values('2012-1-1')",ClmD is Date Type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but got exception,and the database i used is gdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;and it works fine on mdb&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;how to write sql string on gdb when has date,guid value&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks a lot!!!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2012 07:29:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/howto-post-date-guid-parameter-to-sql-str-when/m-p/328542#M8548</guid>
      <dc:creator>zszs</dc:creator>
      <dc:date>2012-06-28T07:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: howto post date,guid parameter to sql str when execute sql via IWorkspace.Execute</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/howto-post-date-guid-parameter-to-sql-str-when/m-p/328543#M8549</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IQuery.Date1 needs date parameter by string type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;what is the format at this place&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 01:43:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/howto-post-date-guid-parameter-to-sql-str-when/m-p/328543#M8549</guid>
      <dc:creator>zszs</dc:creator>
      <dc:date>2012-06-29T01:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: howto post date,guid parameter to sql str when execute sql via IWorkspace.Execute</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/howto-post-date-guid-parameter-to-sql-str-when/m-p/328544#M8550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;right format is,"Datefield" = date 'yyyy-mm-dd'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the sql is,"insert into TB1(ClmD) values(date '2012-1-1')"&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/SQL_reference_for_query_expressions_used_in_ArcGIS/00s500000033000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/SQL_reference_for_query_expressions_used_in_ArcGIS/00s500000033000000/&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;this page has the detail about query expressions&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 02:16:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/howto-post-date-guid-parameter-to-sql-str-when/m-p/328544#M8550</guid>
      <dc:creator>zszs</dc:creator>
      <dc:date>2012-06-29T02:16:13Z</dc:date>
    </item>
    <item>
      <title>Re: howto post date,guid parameter to sql str when execute sql via IWorkspace.Execute</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/howto-post-date-guid-parameter-to-sql-str-when/m-p/328545#M8551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;right format is,"Datefield" = date 'yyyy-mm-dd'&lt;BR /&gt;the sql is,"insert into TB1(ClmD) values(date '2012-1-1')"&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/SQL_reference_for_query_expressions_used_in_ArcGIS/00s500000033000000/"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/#/SQL_reference_for_query_expressions_used_in_ArcGIS/00s500000033000000/&lt;/A&gt;&lt;BR /&gt;this page has the detail about query expressions&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I believe it all depends upon your underlying database (is it SQL Server, Oracle, etc??) as to how you need to write it to the database.&amp;nbsp; You say "gdb", but what is the database?&amp;nbsp; And does your date field in the db contain the time portion of the date?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;All of these factors will affect how you need to store values.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Jun 2012 11:01:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/howto-post-date-guid-parameter-to-sql-str-when/m-p/328545#M8551</guid>
      <dc:creator>JamesCrandall</dc:creator>
      <dc:date>2012-06-29T11:01:32Z</dc:date>
    </item>
  </channel>
</rss>

