I have written a stored procedure inside of SQL Server 2008. When I attempt to execute the stored procedure, I get the following error: Msg 137, Level 15, State 2, Line 1 Must declare the scalar variable "@Year". I've included the code for the stored procedure. Code Snippet: 1:
2:
3:
4...