snoopyf Posted April 10, 2014 Share Posted April 10, 2014 Hi everybody,I'm searching for a possibility to let the user choose the DataSource for a report when he runs it. This should be done by presenting him a drop down list of available DataSources as a Parameter.How could this be achieved?Thx for any hint!Snoopy Link to comment Share on other sites More sharing options...
netti royala Posted April 11, 2014 Share Posted April 11, 2014 May be its not possible up to now versions what we have.future it will be possible. Link to comment Share on other sites More sharing options...
oscar16071987 Posted May 2, 2014 Share Posted May 2, 2014 Hi guys, Maybe is too late, but maybe some dude get this trouble in a future xD Finally I've found a different solution, Is quite strange. I'm sending a DataSourceID parameter... And In SQL Editor something like this DECLARE @cDBName VARCHAR(100) DECLARE @iDSNumber INTEGER SET @iDSNumber = $P{DataSourceNumber} IF @iDSNumber = 1 SET @cDBName = 'Contoso' ELSE SET @cDBName = 'Fabrikam' EXEC (@cDBName + '.dbo.Procedure ' + '[' + @cCustName + '], ' + @iCountry) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now