figured it out.

need to use  datetime directly
lccmdu=lccmdu +" @CompleteDate='"+ TTOC(DATETIME() ) +"'"

 



________________________________
From: Stephen Russell <[email protected]>
To: ProFox Email List <[email protected]>
Sent: Thu, January 27, 2011 9:53:38 AM
Subject: Re: UPDATE SQL SERVER

On Thu, Jan 27, 2011 at 11:47 AM, Jean Haidar <[email protected]> wrote:
> I am trying to update date and time in  SQL Server field usin Stored procedure
> below
>
> the code below  just update but not the time.
>
>
> ldCmpldt=DATETIME()
>
> lccmdu=" exec [dbo].[usp_UpdateEAppAudit]"
> lccmdu=lccmdu+ "@ID = '"+lccaseID+"',"
> lccmdu=lccmdu +" @CompleteDate='"+ TTOC(ldCmpldt) +"'"
>
> IF lncon > 0
>   llretv2= SQLEXEC(lncon,lccmdu)
> ENDIF
------------------

try this:
lccmdu = " exec [dbo].[usp_UpdateEAppAudit] ' "+ lccaseID + " ' , ' "+
DTOS(lcCmpldt)+" ' "


-- 
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.


--- StripMime Report -- processed MIME parts ---
multipart/alternative
  text/plain (text body -- kept)
  text/html
---

_______________________________________________
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