select top 100 percent * from RawData where SiteId=@SitePId and convert(datetime, date, 103) between @StartDate and @EndDate order by convert(datetime, date, 103)
<pre lang="SQL">select top 100 percent * from RawData where SiteId=@SitePId and convert(datetime, date, 103) between @StartDate and @EndDate order by convert(datetime, date, 103)</pre> when i run above query i am getting below error Error converting data type varchar to datetime.
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)