Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP DATE() vs. SQL GETDATE()
Message
From
24/04/2006 06:45:37
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01115333
Message ID:
01115911
Views:
19
>Try
WHERE YEAR(Pickdetail.EditDate) = 2006
Sergey,

This was the first thing I tried but since this is a remote view using an ODBC connection to connect to MSQ SQL 6.5, I get the error:

"'YEAR' is not a recognized built in function."

When this didn't work, tried using the SQL DATEPART command and got it to work but after I save it and then try to reload the view into the View Designer, I get the error described in the previous e-mail.

I can first create an unfiltered remote view and then create a filtered local view on the remote view using the standard VFP YEAR(), MONTH(), DATE() commands but this seems to be over-kill to have to create two views ... I'm hoping there's a way to do it in the remote view.

Thanks,
Robert Wright

Thanks,
Robert
Previous
Reply
Map
View

Click here to load this message in the networking platform