Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
DateTime Comparisons with SQL Server
Message
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
00051173
Message ID:
00051554
Views:
31
>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?
Previous
Reply
Map
View

Click here to load this message in the networking platform