We pass them in as varchars, but accept them in the sp as datetime.
In your CF code:
<CFSTOREDPROC PROCEDURE="Test_SP" datasource="#ds#" username="#username#"
password="#password#">
<CFPROCPARAM TYPE="IN" CFSQLTYPE=CF_SQL_VARCHAR VALUE="#myDate#"
DBVARNAME=@myDate>
</CFSTOREDPROC>
In your SP:
CREATE PROCEDURE Test_SP
@Start_Time_Stamp as datetime
Does this help?
-----Original Message-----
From: stas [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 03, 2002 3:13 PM
To: CF-Talk
Subject: Re: Type attributes for <cfprocparam>
Do I need to cast them inside the stored procedure?
Thanks
----- Original Message -----
From: "Ryan Pieszak" <[EMAIL PROTECTED]>
Datetime fields have to be passed into a stored procedure as a varchar.
Ryan
-----Original Message-----
From: stas [mailto:[EMAIL PROTECTED]]
Hello,
I am trying to pass a value of #createodbcdatetime(myVar)# to a stored
procedure. What would be the cfsqltype for this type of variable? I've tried
DATE and TIMESTAMP, both result in errors.
Thanks!
______________________________________________________________________
Your ad could be here. Monies from ads go to support these lists and provide more
resources for the community. http://www.fusionauthority.com/ads.cfm
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists