TI: Passing parameters to a stored procedure as a datasource
Posted: Fri Mar 06, 2015 1:11 am
Hi,
We're trying to use an SQL Server stored procedure as a data source but having trouble getting it to work with parameters. Currently the TI sql Query window looks like:
This results in a very useful "SQL Statement Failed" error report.
We're able to use the same query with no parameters fine and get the desired results back.
We've tried with other known good stored procedures too in case that sp has issues, but we get the same result. Using etc to build the query string again doesn't seem to help either. No joy. Tried adding brackets here and there and that doesn't seem to help either.
Any hints or tips to get this working? If we can't get parameters to work then it's back to csv's and I'd really rather not go there.
Mike
Cognos Express 10.2.1.2
We're trying to use an SQL Server stored procedure as a data source but having trouble getting it to work with parameters. Currently the TI sql Query window looks like:
Code: Select all
exec wbContractForecastPMRArr '5022', 2015, 11;
We're able to use the same query with no parameters fine and get the desired results back.
We've tried with other known good stored procedures too in case that sp has issues, but we get the same result. Using
Code: Select all
"DatasourceQuery ="
Any hints or tips to get this working? If we can't get parameters to work then it's back to csv's and I'd really rather not go there.
Mike
Cognos Express 10.2.1.2