Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP DATE() vs. SQL GETDATE()
Message
De
24/04/2006 06:45:37
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Divers
Thread ID:
01115333
Message ID:
01115911
Vues:
18
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform