I have a stored procedure that I need to modify and I would like to use the LIKE clause instead of the BETWEEN in a date range. I am running a report that calls this stored procedure and right now it is using @StartDate and @EndDate. I want to use LIKE. here is a sample of what I am wanting to change.
I have a parameter in a report that calls the stored procedure and puts a date range which replaces the StartDate and EndDate. It is not pulling all the records for the date range because for some reason it cuts off after 7:00 pm and doesn't pull everything for the daterange. When I use the LIKE clause it works fine. Any help woulde be appreciated.
Jason
Code:
SELECT @Contracts = Count(AppID) FROM #TEMP WHERE Dealer = @vDealer AND StatusAppDetail = 'A' AND (DateContractFunded between @StartDate AND @EndDate)
Jason
Comment