Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SmallDateTime in MSSQL to Date in VFP
Message
From
23/10/2003 19:37:08
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Miscellaneous
Thread ID:
00841887
Message ID:
00841915
Views:
44
>>
-- sql server t-sql code
>>select convert(smalldatetime, convert(varchar, date_col, 101)) as date_col...
>>and then deal with date display/calculations in the VFP code, e.g., if you have to calculate date difference between dates, etc. Of course, if you need that kind of calculation, you could also let SQL Server handle that, as well.
>
>I am not familiar with the function convert() so I will have to look it up. It must be a SQL Server function as I don't see it in the VFP 8 help.

If you're using SQLEXEC(), you have to use SQL (or whatever backend) syntax, not VFP syntax. So yes, CONVERT would be a SQL function, not a VFP one.
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Previous
Reply
Map
View

Click here to load this message in the networking platform