Everything working in mssql except Date range queries