Changed into a procedure, getting a syntax error at \'PROCEDURE\' any ideas?
CREATE PROCEDURE performance_Report @startDate DATE, @endDate DATE AS SELECT S
From outside of the view definition you don't have access to the underlying tables.