Viewing 5 posts - 1 through 5 (of 5 total)
What leaps out right away are two things:
1. DECLARE @weekends INT (but this is never used, and doesn't appear to be required)
2. Is the equation giving the correct results?
Assume DATEDIFF(day,...
March 26, 2008 at 11:47 am
Unless I am missing something about the logical organization of the data, it seems to me that the problem stems from the inability to distinguish which eleven-week group each Wk#...
March 13, 2008 at 12:32 pm
If I change the SPROC back to simply select the DueDate, then generate the DataSet from that, then change the SPROC to calculate the DueDate without regenerating the DataSet, the...
May 8, 2007 at 12:08 pm
That was my thinking. I have also tried "cast(isnull(duedate, dateadd(day, 7, startdate)) AS DATETIME) as enddate", but no joy there either.
I'm not sure I can get .NET to display a date for...
May 3, 2007 at 3:41 pm
I do this:
DECLARE
@strSelectedCity varchar(50)
SET
@strSelectedCity = 'FairField'
SELECT
XCode, City, CASE WHEN City = @strSelectedCity THEN 0 ELSE 1 END AS Sort
FROM
City_Table
ORDER BY
Sort, XCode
Cheers.
April 6, 2007 at 11:59 am
Viewing 5 posts - 1 through 5 (of 5 total)