i have one query Where When i m filtering data on the basis of 2 dates it will take 2 min to execute
but when i remove that condition it takes 1 sec, only
but when i remove that condition it takes 1 sec, only
select * from AccountEmployee where convert(varchar,convert(datetime,CreatedOn,101),101) >= '05/04/2011'and convert(varchar,convert(datetime,CreatedOn,101),101) <= '05/07/2011'
Comment