On Tue, Dec 28, 2010 at 2:28 PM, James E Harvey <[email protected]> wrote:
> I can connect and pull all the records using:
>
> SQLEXEC(m.lih,"SELECT * FROM hsf_webct")
>
>
> But when I try the where clause it fails:
>
> SQLEXEC(m.lih,"SELECT * FROM hsf_webct where TTOD(DTE_OWN)  =
> {^2010/12/28}")
>
>
>
> dte_own is a datetime MS SQL2005 datatype
---------------

In 2005 you have to go between time frames of the DATE you want.  This
should find all.


 SQLEXEC(m.lih,"SELECT * FROM hsf_webct where DTE_OWN between
'2010/12/28' and '2010/12-29'  )



-- 
Stephen Russell

Sr. Production Systems Programmer
CIMSgts

901.246-0159 cell

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to