Viewing 8 posts - 16 through 23 (of 23 total)
The function below is used within a query to get the last 10 days data. The query runs very slow even though there are indexes on the table. Any ideas?
CREATE...
July 19, 2010 at 3:31 am
Hi Chris,
How do I create a date table? Here's what the function does below
CREATE FUNCTION [dbo].[fn_ConvertToBusinessDate] (@Date DATETIME) RETURNS DATETIME AS
BEGIN
DECLARE @RollOverTime DATETIME
SELECT @RollOverTime = [RollOverTime]
FROM [dbo].[ac_Estate]
SELECT @Date = CONVERT(VARCHAR(8),...
July 15, 2010 at 1:40 am
Viewing 8 posts - 16 through 23 (of 23 total)