MinalMaurice
Programmer
I am migrating from Microsoft Access to Microsoft SQL as my database.
I'm getting problems with dates - an error is returned "The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value."
This is due to the line of code
Set LastVisit = '#TodayDate#' Where ID = #MemberResponse.ID#
based on
<CFSET TodayDate = '#dateformat(Now(), 'dd/mm/yyyy')#'>
SQL 2000 doesn't like unlimited dates, so that the above CFSET needs to be changed to prevent the error occurring.
Any ideas on how to modify that CFSET?
Thanks in advance.
I'm getting problems with dates - an error is returned "The conversion of char data type to smalldatetime data type resulted in an out-of-range smalldatetime value."
This is due to the line of code
Set LastVisit = '#TodayDate#' Where ID = #MemberResponse.ID#
based on
<CFSET TodayDate = '#dateformat(Now(), 'dd/mm/yyyy')#'>
SQL 2000 doesn't like unlimited dates, so that the above CFSET needs to be changed to prevent the error occurring.
Any ideas on how to modify that CFSET?
Thanks in advance.