i have following Query
select * from DATABASE.dbo.Rooms r
where not exists
(select * from DATABASE.dbo.Reservation
where RoomNo = r.RoomNo
and DateStart <= 'Textbox2.text'
and DateEnd >= 'Textbox1.text')
the label should display all the rooms available and its details.how can i Show table field data on label control
It’s hard to know where to start, here…
First of all, understand the difference between C# and SQL. Your SQL statement makes no sense. Use parameterized queries. Use parameterized queries! Use parameterized queries!
This is your SQL query. Now call it from C#: