Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Remote view design problem
Message
 
To
07/04/1998 18:30:27
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00090304
Message ID:
00090357
Views:
27
>We are using MS SQL Server as a backend. The table in the database stores person's birth date. During the retrieval I would like to calculate age for the person. I use ODBC's TIMESTAMPDIFF which is listed in datetime function in view designer. The field definition looks like this:
>{fn TIMESTAMPDIFF(SQL_TSI_YEAR,{fn CURDATE()},birthday)} as age
>
> When I click button to verify it I get VFP's syntax error. And this heppens to any expression which has one ODBC function inside another one. Does anybody knows work around it?
>
>TIA
>Dmitriy

Hi Dmitriy,

Replace CURDATE() with SQL Server's GETDATE() function to get the
current date.

Bye
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform