I am getting the following error message with SQL Server 2005
Msg 120, Level 15, State 1, Procedure usp_AttributeActivitiesForDateRange, Line 18 The
In the Select there is a typo
[Local-User-ID] [Activity-Type],
you are missing ","!