Mike Lewis
Programmer
One of my clients is planning to upgrade from SQL Server 2005 to 2008 R2.
I note that 2008 (and above) support the Date data type. Earlier versions only offered a Datetime (and Smalldatetime). If you want to map a Datetime or Smalldatetime to a VFP Date field, you have to jump throuth a couple of hoops to get rid of the time element.
I'm thinking of suggesting to the client that we use the new Date data type in those cases where the time element is not needed. I'm hoping this will simplify the process of moving this data into and out of the VFP application.
However, I don't yet have access to 2008 or above, so I haven't been able to experiment with the new data type. I'm wondering if I am likely to encounter any problems with it, from a VFP perspective.
Does anyone have any experience of using the Date data type from within VFP (either via SQL pass-through or remote views)? Are there any known problems I need to watch out for?
My basic aim is simply to work with date fields from within VFP without having to worry about the unwanted time element.
Thanks in advance.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips, training, consultancy
I note that 2008 (and above) support the Date data type. Earlier versions only offered a Datetime (and Smalldatetime). If you want to map a Datetime or Smalldatetime to a VFP Date field, you have to jump throuth a couple of hoops to get rid of the time element.
I'm thinking of suggesting to the client that we use the new Date data type in those cases where the time element is not needed. I'm hoping this will simplify the process of moving this data into and out of the VFP application.
However, I don't yet have access to 2008 or above, so I haven't been able to experiment with the new data type. I'm wondering if I am likely to encounter any problems with it, from a VFP perspective.
Does anyone have any experience of using the Date data type from within VFP (either via SQL pass-through or remote views)? Are there any known problems I need to watch out for?
My basic aim is simply to work with date fields from within VFP without having to worry about the unwanted time element.
Thanks in advance.
Mike
__________________________________
Mike Lewis (Edinburgh, Scotland)
Visual FoxPro articles, tips, training, consultancy