Atomizer (Expression-based Connection Strings)
One of the new features of SQL Server 2005 Reporting Services is support for expression-based connection strings. Many customers have the same database schema in multiple database or servers. In SQL Server 2000 Reporting Services, it was hard to have a single report that would work against multiple data sources. Below is a sample RDL snippet for a data source with an expression-based connection string which takes the server and database names from report parameters.
<DataSources>
<DataSource Name="Northwind">
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>="data source=" & Parameters!ServerName.Value & ";initial catalog=" & Parameters!DBName.Value</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
</DataSources>
...
<ReportParameters>
<ReportParameter Name="ServerName">
<DataType>String</DataType>
<Prompt>ServerName</Prompt>
</ReportParameter>
<ReportParameter Name="DBName">
<DataType>String</DataType>
<Prompt>DBName</Prompt>
</ReportParameter>
</ReportParameters>
One limitation with expression-based connection strings is that you cannot manage them like you can with as literal strings in data sources. You can, however, override the expression in Report Manager or Management Studio.
Comments
- Anonymous
September 18, 2005
It don't work. - Anonymous
September 29, 2005
Doesn't work for me either? Is any other way? - Anonymous
November 08, 2005
how to do that in reporting services 2000. - Anonymous
December 01, 2005
Do you have an example of using this? Or is there a sample site on the net that implements this? I have a number of E-Commerce sites with the same Schema and they use the same reports, but I need to be able to switch the reports on the fly, changing the database they should go against.
Any Help would be greatly appreciated.
Scott
Measure Twice... Cut ONCE!! - Anonymous
December 15, 2005
Some additional information.
http://msdn2.microsoft.com/en-us/library/ms156450.aspx
Ty Millwee - Anonymous
February 02, 2006
I've tried and it works only in VS2005 - Anonymous
June 26, 2006
It works with sql statements but not with stored procedures
i hope if any body could help - Anonymous
July 13, 2006
I can't get this to work if my command type should be a stored proc. it keeps reseting to text. Is this a bug? - Anonymous
July 31, 2006
Expression based Connectionstring inside my RDL code didn't work for me.. Please need your help - Anonymous
October 18, 2006
Great site!! My pages <a href="http://hometown.aol.com/eqpills/ephedra.html ">Ephedra</a> or [url=http://hometown.aol.com/eqpills/ephedra.html]Ephedra[/url] bye! - Anonymous
October 25, 2006
Has anyone gotten this to work connecting to Oracle? I don't know if this is my exact problem but when I use:="Data Source=" & Parameters!DatabaseSID.ValueI get the following error:Native compiler return value: '[BC32017] Comma, ')', or a valid expression continuation expected.'. - Anonymous
October 25, 2006
[URL=http://cat.karelia.ru/auto-cheap-insurance/canada-car-cheap-in-insurance.html]canada-car-cheap-in-insurance[/URL] - Anonymous
October 25, 2006
The comment has been removed - Anonymous
October 31, 2006
The comment has been removed - Anonymous
November 07, 2006
[url=http://ganfan1.narod.ru]ganfan[/url]<a href="http://ganfan1.narod.ru">ganfan</a>http://ganfan1.narod.ru - Anonymous
November 08, 2006
Thank you for your site. I have found here much useful information!Very cool design!Added to favorites!! My site: http://titan-tankless-waterheater.blogspot.com - Anonymous
November 08, 2006
[url=http://ganfan1.narod.ru]ganfan[/url]<a href="http://ganfan1.narod.ru">ganfan</a>http://ganfan1.narod.ru - Anonymous
November 23, 2006
Hi! check this <a href=http://akoc-icco.ru/wonder-woman-costume>wonder woman costume</a> - Anonymous
November 23, 2006
peace! <a href=http://akoc-icco.ru/wholesale-watch>wholesale watch</a> - Anonymous
November 23, 2006
The comment has been removed - Anonymous
November 23, 2006
Hi! check this <a href=http://akoc-icco.ru/wonder-woman-costume>wonder woman costume</a> - Anonymous
November 24, 2006
peace! <a href=http://akoc-icco.ru/wholesale-watch>wholesale watch</a> - Anonymous
November 24, 2006
I love you! <a href=http://akoc-icco.ru/wholesale-toy>wholesale toy</a> - Anonymous
November 24, 2006
<a href=http://akoc-icco.ru/wholesale-tool>wholesale tool</a> - Anonymous
November 24, 2006
<a href=http://akoc-icco.ru/wholesale-tire>wholesale tire</a> - Anonymous
November 24, 2006
<a href=http://akoc-icco.ru/wholesale-sun-glasses>wholesale sun glasses</a> - Anonymous
November 25, 2006
<a href=http://akoc-icco.ru/wholesale-sports>wholesale sports</a> - Anonymous
November 25, 2006
<a href=http://akoc-icco.ru/wholesale-silver-jewelry>wholesale silk flower</a> - Anonymous
November 25, 2006
<a href=http://akoc-icco.ru/wholesale-silk-flower>wholesale silk flower</a> - Anonymous
November 25, 2006
<a href=http://akoc-icco.ru/wholesale-ribbon>wholesale ribbon</a> - Anonymous
November 26, 2006
<a href=http://akoc-icco.ru/wholesale-purse>wholesale purse</a> - Anonymous
November 26, 2006
<a href=http://akoc-icco.ru/wholesale-product>wholesale product</a> - Anonymous
November 26, 2006
<a href=http://akoc-icco.ru/wholesale-picture-frame>wholesale picture frame</a> - Anonymous
November 26, 2006
<a href=http://akoc-icco.ru/wholesale-pet-supply>wholesale pet supply</a> - Anonymous
November 26, 2006
<a href=http://akoc-icco.ru/wholesale-nursery>wholesale nursery</a> - Anonymous
November 27, 2006
<a href= http://forum.lixium.fr/cgi-bin/liste.eur?wellbut > wellbutrin sr </a> [url= http://forum.lixium.fr/cgi-bin/liste.eur?wellbut ] wellbutrin sr [/url] - Anonymous
November 30, 2006
I've just been letting everything pass me by lately. I've more or less been doing nothing. Not much going on lately. I can't be bothered with anything recently. - Anonymous
December 01, 2006
<a href= http://forum.lixium.fr/cgi-bin/index.eur?mitsu > wellbutrin medication </a> [url= http://forum.lixium.fr/cgi-bin/index.eur?mitsu ] wellbutrin side effects [/url] - Anonymous
December 04, 2006
Good site! Well.. i like design! - Anonymous
December 08, 2006
Very good project! <a href= www.debtconsolidation.newov.info >debt consolidation</a> <a href= www.badcreditloan.newov.info >bad credit loan</a> - Anonymous
December 08, 2006
Very nice resources!<a href= www.mortgagerefinancing.newov.info >mortgage refinancing</a> <a href= www.autoinsurancequote.newoz.info >auto insurance quote</a> - Anonymous
December 10, 2006
Well...good news, i like your site, Happy new year! ))) - Anonymous
December 11, 2006
Well, your site is very good, good news and design...! ))) Happy Christmas! SmilerMan. - Anonymous
April 05, 2007
Very nice! I have some sites with news, check this out:<a href= http://kreolikko.livejournal.com >Politics news</a><a href= http://icefroggg.livejournal.com >Lastest news</a><a href= http://icyiceman.livejournal.com >Lifestyle news</a> - Anonymous
April 18, 2007
The Best Catalog.<a href=http://healthpiece.info/>Real">http://healthpiece.info/>Real Catalog</a>[url=http://healthpiece.info/]The Real Catalog[/url] - Anonymous
June 03, 2007
wow<a href="http://hhkjj.org/hollywood-sexcapades.html">hollywood sexcapades</a><a href="http://hhkjj.org/holocast.html">holocast</a><a href="http://hhkjj.org/home-cure-for-acne-acne-inc.html">home cure for acne acne-inc</a><a href="http://hhkjj.org/home-treatment-for-acne-acne-inc.html">home treatment for acne acne-inc</a> - Anonymous
May 31, 2009
PingBack from http://portablegreenhousesite.info/story.php?id=1457 - Anonymous
June 01, 2009
PingBack from http://portablegreenhousesite.info/story.php?id=11080 - Anonymous
June 07, 2009
PingBack from http://besteyecreamsite.info/story.php?id=74 - Anonymous
June 08, 2009
PingBack from http://quickdietsite.info/story.php?id=10371 - Anonymous
June 13, 2009
PingBack from http://gardenstatuesgalore.info/story.php?id=2208 - Anonymous
June 16, 2009
PingBack from http://workfromhomecareer.info/story.php?id=14527 - Anonymous
June 16, 2009
PingBack from http://fixmycrediteasily.info/story.php?id=212 - Anonymous
June 16, 2009
PingBack from http://lowcostcarinsurances.info/story.php?id=417 - Anonymous
June 17, 2009
PingBack from http://patioumbrellasource.info/story.php?id=2709