Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Problem with SQL queries using dates in the WHERE clause
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00624718
Message ID:
00624854
Views:
11
You send dates to Sql Server as string literals. Sql Server can recognize a few different types of date string. See 'datetime data type, formats' in BOL for details. Also remember that Sql Server has only datetime data type that includes time portion. You should always take that in account.

>Hi...
>
>I would like to know how can I build my SQL statement to use a date variable in the WHERE clause... This SQL statement will be send using : recordset=connectionObject.execute(my_SQL_statement)
>
>the connectionObject is an ADODB.connection object connected on a SQL Server.
>
>Thanks...
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform