I am having a real issue with trying to query my database by selecting the data between 2 dates.
Below is the query I am using within my VB .NET project.
WHERE [BuildID] > 0 AND [EndDate] BETWEEN '01/07/2014' and '31/07/2014'
The date format is set to dd/mm/yyyy and the column type is VARCHAR(10)
When I run this query, it brings back all the data in my database, basically it selects all.
I have tried several methods such as [EndDate] >= '01/07/2014' and [EndDate] <= '31/07/2014'
and it brings back the same result, it disregards the dates and brings back the entire database.
I have a feeling that it is because the column is set to VARCHAR but I am not sure.
If someone could point me in the right direction that would be most helpful.
Thanks for taking the time to read this.