Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Need advise for SQL statement
Message
From
10/11/2004 19:00:13
 
 
To
10/11/2004 06:05:21
General information
Forum:
ASP.NET
Category:
ADO.NET
Environment versions
Environment:
VB.NET 1.1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00959905
Message ID:
00960248
Views:
9
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!!!
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform