Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which Date Type in SQL Server?
Message
From
05/05/2018 16:59:31
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Client/server
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01659629
Message ID:
01659762
Views:
48
>Thanks.
>
>I have been using the SQL Server driver and datetime and VarChar(max) seems to be OK. I use VFP SP2. The only issue I have is when I use DATE() arithmetic in my code it doesn't work. I have to change the code to DateTime().

Not necessarily so. You can create a schema on VFP side where these fields would map to date fields... I know we do it in cursoradapters (there's some code in the CA class which deals with the fields which are OK with the defaults, so only a list of exceptions is needed). ISTr that it was also possible with views and perhaps SPT cursors, but haven't played with those in almost ten years.

Anyway, when you have date fields on VFP side, it all works just like before.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform