SSRS: Include Parameter in SharePoint List Connection String


In SQL Server Report Builder I can create a Microsoft SharePoint List connection to my sub sites by making the connection string:


Is it possible to have the connection string an expression that gets the SubSite name from a parameter, so something like:


I can't seem to get the correct syntax to work.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Provided that the SharePoint list connection string does allow Expression Based Connection Strings, Expression based connection strings have this sort of syntax:

="http://SharePointServer/Sites/" & Parameters!SubSite.Value

or maybe:
="data source=http://SharePointServer/Sites/" & Parameters!SubSite.Value

I haven't got a system to test it on so post any error messages it gives.
lee_murphyAuthor Commented:
Cheers colly.  It turns out that, typically, I kept at it after posting the question and found the answer.  the parameter I was using was correct (="http://SharePointServer/Sites/" & Parameters!SubSite.Value) however it doesn't work at design time, so I had to create two connections, one with a link to a subsite, used to design the form, and one using the parameter syntax and swapping the source of the DataSet before testing it in runtime, seemed to work.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
lee_murphyAuthor Commented:
I figured out the answer myself.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SharePoint

From novice to tech pro — start learning today.