Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Need advise for SQL statement
Message
De
10/11/2004 19:00:13
 
 
À
10/11/2004 06:05:21
Information générale
Forum:
ASP.NET
Catégorie:
ADO.NET
Versions des environnements
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Divers
Thread ID:
00959905
Message ID:
00960248
Vues:
10
Winan,

I'm not sure what error you'd be getting but if I may make a suggestion on how I'd write it:

Dim mFromDate As Date = C1DateEdit2.Text
Dim mToDate As Date = C1DateEdit2.Text

Dim mPrintDaily As String = "SELECT * FROM Daily WHERE UDate Between '" & _
mFromDate & "' and '" & mToDate & "'"

This way I would not have to setup the parameters of the command object. To be honest I haven't played arount with the data reader object yet, so if this will apply with how the command object is used I can't really say...

Martin
Shit happens!!!
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform