I know this may seem redudant, but give this a try:

<cfset Time = '5:00 pm'>
<cfset StartTime = CreateODBCDateTime(Time)>

<cfprocparam type="In"
cfsqltype="CF_SQL_TIMESTAMP"
dbvarname="@StartTime"
value="#CreateODBCDateTime(StartTime)#">



--------------------------------------------------------------
Mark Warrick
Phone: (714) 547-5386
Efax.com Fax: (801) 730-7289
Personal Email: [EMAIL PROTECTED]
Personal URL: http://www.warrick.net 
Business Email: [EMAIL PROTECTED]
Business URL: http://www.fusioneers.com
ICQ: 346566
--------------------------------------------------------------


> -----Original Message-----
> From: sebastian palmigiani [mailto:[EMAIL PROTECTED]]
> Sent: Thursday, December 28, 2000 10:15 AM
> To: CF-Talk
> Subject: SQL stored procedure and time insert
> 
> 
> 
> I cannot figure out why I am getting this error with SQL Server 
> inserting a
> time value in a stored procedure. Anyone know why?
> 
> ----------------------------
> 
> ODBC Error Code = 37000 (Syntax error or access violation)
> 
> [Microsoft][ODBC SQL Server Driver][SQL Server]Error converting data type
> varchar to datetime.
> 
> ----------------------------
> 
> <cfset Time = '5:00 pm'>
> <cfset StartTime = CreateODBCDateTime(Time)>
> 
> <cfprocparam type="In"
> cfsqltype="CF_SQL_TIMESTAMP"
> dbvarname="@StartTime"
> value="#StartTime#"
> 
> @StartTime is a DateTime field
> 
> 
>
~~~~~~~~~~~~~ Paid Sponsorship ~~~~~~~~~~~~~
Get Your Own Dedicated Win2K Server!      Instant Activation for $99/month w/Free 
Setup from SoloServer      PIII600 / 128 MB RAM / 20 GB HD / 24/7/365 Tech Support     
 Visit SoloServer, https://secure.irides.com/clientsetup.cfm.

Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to