It appears that the problem is that you're trying to pass the dates (e.g.: '1990/01/03') as character string information into VFP6 which is expecting date field formatted data. That should correctly throw a "Data type mismatch" error.
Also, the default date format for the VFP ODBC driver seems to be the American format, mm/dd/yy.
PRB: ODBC Query Fails with Non-American Date Format
http://support.microsoft.c
I'm not familiar enough with Cold Fusion to know if it has any odd requirements in making this to work, but, besides putting the date in American format, I would try putting braces around the date data, {01/03/1990}, in place of the single quote delimiters. The braces within VFP tell it to interpret the enclosed data as date formatted data.
Trying to get that data to SQL Server, another format may prove better where the data meets this format {d 'yyyy-mm-dd'}. But, I don't think that is required here.
Hope this is the information you need to get it working.
Main Topics
Browse All Topics





by: cbasozPosted on 2003-07-11 at 09:29:05ID: 8904028
'1990/01/03'
Should be :
{^1990/01/03}
In other words for each dates you pass use curly braces and ^YYYY/MM/DD style
For datetime values it'd be :
{^YYYY/MM/DD hh:mm:ss}
Hours, mins., seconds are optional and default to 0.