Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with SQL queries using dates in the WHERE clause
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00624718
Message ID:
00624854
Vues:
12
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform