I have stored procedure which runs perfectly. And when I insert it into query designer in MS Reporting Services, Ii have error:
Incorrect syntax near 'GO'. Incorrect syntax near 'GO'. Incorrect syntax near 'GO'. The variable name '@s1a' has already been declared. Variable names must be unique within a query batch or stored procedure.
As I said, procedure runs fine in MS SQL Server 2008.
Parameter isn't declared before.
Is there something that needs to be changed so procedure works in Reporting Services?