Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
DateTime Comparisons with SQL Server
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
00051173
Message ID:
00051554
Vues:
36
>Instead of passing the DATETIME() function simply store it in a variable and have your query as...

I don't think so. The Problem is that the WHERE clause is sent to SQL server which
knows nothing about DATE() or DATETIME(). I think it might work with a straight
variable.

I managed to work around it by using SQL Server's DateDiff() function (oh yeah,
how intuitive) or by converting the date to a string which is how SQL
server expects it in literal comparisons. Neither was very obvious, but it worked.

Thanks,
+++ Rick ---

West Wind Technologies
Maui, Hawaii

west-wind.com/
West Wind Message Board
Rick's Web Log
Markdown Monster
---
Making waves on the Web

Where do you want to surf today?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform