Hi,
I need to compare a VFP datetime field to a datetime2(7) (or whatever I need to change it to) SQL field. I'm getting inacurate results with what I've tried...
I need an exact match as I'm using a T-Sql command like this:
update table
set..........
where datetime field comparision......
IF @@ROWCOUNT=0
Insert Into table
I've used combinations of
vfp9 SET CENTURY on/off and SET HOURS TO 24 and 12 commands,
sql cast() and convert() commands
So, how should I setup the sql table datetime datatype that compares exactly to vfp's datetime type?
I'm not doing any math on the field, just using it to see if it exists in the lookup table as shown above...
Thanks, Stanley
I need to compare a VFP datetime field to a datetime2(7) (or whatever I need to change it to) SQL field. I'm getting inacurate results with what I've tried...
I need an exact match as I'm using a T-Sql command like this:
update table
set..........
where datetime field comparision......
IF @@ROWCOUNT=0
Insert Into table
I've used combinations of
vfp9 SET CENTURY on/off and SET HOURS TO 24 and 12 commands,
sql cast() and convert() commands
So, how should I setup the sql table datetime datatype that compares exactly to vfp's datetime type?
I'm not doing any math on the field, just using it to see if it exists in the lookup table as shown above...
Thanks, Stanley