<?xml version="1.0" encoding="utf-8" ?>
<?xml-stylesheet type="text/xsl" href="RSS_xslt_style.asp" version="1.0" ?>
<rss version="2.0" xmlns:WebWizForums="http://syndication.webwiz.co.uk/rss_namespace/">
 <channel>
  <title>DevForce Community Forum : Date Problem in PassthruEsql Query</title>
  <link>http://www.ideablade.com/forum/</link>
  <description>This is an XML content feed of; DevForce Community Forum : DevForce Classic : Date Problem in PassthruEsql Query</description>
  <pubDate>Sun, 12 Apr 2026 22:37:11 -700</pubDate>
  <lastBuildDate>Wed, 14 May 2008 22:27:18 -700</lastBuildDate>
  <docs>http://blogs.law.harvard.edu/tech/rss</docs>
  <generator>Web Wiz Forums 9.69</generator>
  <ttl>360</ttl>
  <WebWizForums:feedURL>www.ideablade.com/forum/RSS_post_feed.asp?TID=806</WebWizForums:feedURL>
  <image>
   <title>DevForce Community Forum</title>
   <url>http://www.ideablade.com/forum/forum_images/IdeaBlade_logo_tm.png</url>
   <link>http://www.ideablade.com/forum/</link>
  </image>
  <item>
   <title>Date Problem in PassthruEsql Query :  Thanks for your response......</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=806&amp;PID=2956#2956</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=304" rel="nofollow">Dinesh</a><br /><strong>Subject:</strong> 806<br /><strong>Posted:</strong> 14-May-2008 at 10:27pm<br /><br /><br>Thanks for your response... it works... <br><br>Thanks once again...<br><br><span style="font-size:10px"><br /><br />Edited by Dinesh - 14-May-2008 at 10:36pm</span>]]>
   </description>
   <pubDate>Wed, 14 May 2008 22:27:18 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=806&amp;PID=2956#2956</guid>
  </item> 
  <item>
   <title>Date Problem in PassthruEsql Query : Since this is a pass through query,...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=806&amp;PID=2955#2955</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=11" rel="nofollow">kimj</a><br /><strong>Subject:</strong> 806<br /><strong>Posted:</strong> 14-May-2008 at 3:01pm<br /><br />Since this is a pass through query, the syntax is validated by the Entity Framework and must meet EF eSQL requirements.&nbsp; Date literals are a little tricky and need to be formatted something like this: <DIV>&nbsp; Datetime 'yyyy-mm-dd hh:mm'</DIV><DIV>&nbsp;</DIV><DIV>So, your birthdate clause should work if rewritten like this:</DIV><DIV>&nbsp;&nbsp;&nbsp; (m.BirthDate = Datetime'1958-07-23 00:00')</DIV><DIV>&nbsp;</DIV><DIV>Here's a link to some info on eSQL literal support:&nbsp; <a href="http://msdn.microsoft.com/en-us/library/bb399176.aspx" target="_blank">http://msdn.microsoft.com/en-us/library/bb399176.aspx</A></DIV><DIV>&nbsp;</DIV><DIV>&nbsp;</DIV>]]>
   </description>
   <pubDate>Wed, 14 May 2008 15:01:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=806&amp;PID=2955#2955</guid>
  </item> 
  <item>
   <title>Date Problem in PassthruEsql Query : Cosider the Following PassthruEsql...</title>
   <link>http://www.ideablade.com/forum/forum_posts.asp?TID=806&amp;PID=2953#2953</link>
   <description>
    <![CDATA[<strong>Author:</strong> <a href="http://www.ideablade.com/forum/member_profile.asp?PF=304" rel="nofollow">Dinesh</a><br /><strong>Subject:</strong> 806<br /><strong>Posted:</strong> 14-May-2008 at 7:03am<br /><br /><P>Cosider the Following PassthruEsql Query</P><P>SELECT VALUE m from Members AS m WHERE (1=1) AND ( (0=1) or (m.SSN like '_Data_') or (m.MemberName.LastName like '_Data_') or (m.BirthDate = 7/23/1958 12:00:00 AM) or (m.Contact.Phone like '_Data_') )</P><P>When i run above PassthruEsqlQuery it gives following error :</P><P><strong>IdeaBlade.EntityModel.v4.EntityServerException: The query syntax is not valid, near term '12', line 1, column 163. ---&gt;&nbsp; System.Data.QueryException: The query syntax is not valid, near term '12', line 1, column 163.</strong></P><P>When i remove m.birthdate part from PassthruEsqlQuery it works fine and gives me the result.</P><P>so pl. tell&nbsp;whats wrong with Date&nbsp;Part in above passthruESql Query.</P><P>Thanks</P>]]>
   </description>
   <pubDate>Wed, 14 May 2008 07:03:06 -700</pubDate>
   <guid isPermaLink="true">http://www.ideablade.com/forum/forum_posts.asp?TID=806&amp;PID=2953#2953</guid>
  </item> 
 </channel>
</rss>