Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting dates in a Web form
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
01229139
Message ID:
01229373
Vues:
33
Hi, Gerard,

If you want to construct your SQL syntax in your application layer, the syntax would be...
string lcSelect = lcSelect = "DOC_DATE BETWEEN '" +  ldFrom.ToString() + "' AND '" + ldTo.ToString() + "'"; 
However, I don't advise this - you're better off building a stored procedure that accepts the 2 dates as parameters (the "@" symbol that you were using is for SQL parameters inside SQL server).

Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform