Hello,
I'm having some problems creating a SELECT statement in my C# app.
Here's what I have so far:
StartDateTbx & EndDateTbx are both textboxes on the webform.
the error message i'm getting is:
How do I reference these textboxes containing date information in the SQL statement?
I'm having some problems creating a SELECT statement in my C# app.
Here's what I have so far:
Code:
SELECT bill_no FROM voice_main WHERE beg_stamp > convert(datetime,StartDateTbx.Text) AND end_stamp < convert(datetime, EndDateTbx.Text)";
StartDateTbx & EndDateTbx are both textboxes on the webform.
the error message i'm getting is:
Code:
The column prefix 'StartDateTbx' does not match with a table name or alias name used in the query. The column prefix 'EndDateTbx' does not match with a table name or alias name used in the query.
How do I reference these textboxes containing date information in the SQL statement?