It works with getdate(). I just found in the Help files the topic "Mapping Visual FoxPro Databases to SQL Databases, and the "Mapping Expressions" section shows that datetime() in vfp maps to getdate() in MSSQL.
I appreciate the help. James E Harvey M.I.S. Hanover Shoe Farms, Inc. www.hanoverpa.com office: 717-637-8931 cell: 717-887-2565 fax: 717-637-6766 -----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Stephen Russell Sent: Friday, June 21, 2013 10:29 AM To: ProFox Email List Subject: Re: Update MS SQL table from VFP On Fri, Jun 21, 2013 at 9:13 AM, James Harvey <[email protected]> wrote: > Thanks, > > > > *lc_selectcommand = "insert into hsf_ntf > (postdate,firstname,lastname,email,damname,foalname) values > (DATETIME(),'test','test','test','test','test')" > > > ********************************************************************** > **** > So close! DateTime() needs to be getdate() -- Stephen Russell Sr. Analyst Ring Container Technology Oakland TN 901.246-0159 cell --- StripMime Report -- processed MIME parts --- multipart/alternative text/plain (text body -- kept) text/html --- [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.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.

