I am working on a query that provides the records displayed on a report and noticed that the previous developer used '=<' and '>=' to compare two datetimes that are parameters of said query. These parameters are passed as strings and are not converted into datetime objects. I noticed that, in the query results, I'm missing data from about two days. I'd like to know if there is any difference in precision when comparing these datetimes using '=<' and '>=' instead of using 'between' (which could be what is causing the loss of data in the results).
For completeness, here is a simple example of the current comparison used:
Declare @DateTo varchar(max) = '2013-07-29'
Declare @DateFrom varchar(max) = '2013-07-07'
SELECT * FROM Records WHERE Date =< @DateTo AND Date >= @DateFrom