Mondeo
Well-known member
I have this statement
SELECT * FROM vwAllMatrixVehicles WHERE created >= 2007/8/9
Using query analyser in sql management studio it returns about 80 rows.
Trying to use it in ASP.NET with the SqlCommand class the same statement returns 0 rows.
Ive double checked my code, its fine. If I replace the select statement with something else that doesnt use a date its fine.
Does SqlClient handle dates differently somehow?
Thanks
SELECT * FROM vwAllMatrixVehicles WHERE created >= 2007/8/9
Using query analyser in sql management studio it returns about 80 rows.
Trying to use it in ASP.NET with the SqlCommand class the same statement returns 0 rows.
Ive double checked my code, its fine. If I replace the select statement with something else that doesnt use a date its fine.
Does SqlClient handle dates differently somehow?
Thanks