I am getting the following error message with SQL Server 2005
Msg 120, Level 15, State 1, Procedure usp_AttributeActivitiesForDateRange, Line 18 The
you forgot a comma after [Local-User-ID] so it aliased that column as [Activity-Type]
common mistake
in essence you have Local-User-ID] AS [Activity-Type], the AS is optional