Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2012 Forums
 Analysis Server and Reporting Services (2012)
 ssrs variable name '@pC' has already

Author  Topic 

jassie
Constraint Violating Yak Guru

332 Posts

Posted - 2014-08-09 : 18:49:50
In an existing SSRS 2012 report, I am getting the following error message when I run the ssrs report:
"query execution failed for dataset 'getMilestones'. The variable name '@pCustomerNumber' has already been declared. variable names must be unique within a query batch or stored procedure. "
The parameter called 'pCustomerNumber' is the only paramter by that name that I can see. This is a cascading paramter. There are at least 2 parameters that reference 'pCustomerNumber'. Thus I am not certain what could be wrong. Could the order of how the parameters str declared make a difference?

Would you let me know what you think is wrong so that I could try to resolve this issue?

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2014-08-10 : 07:58:36
Please post the SQL query
Go to Top of Page
   

- Advertisement -