Friday, March 30, 2012

Reporting Services and multiple data sources

I have a group of reports that are the same for 3 different companies, the difference is the data connection. Is there a way I can change the data connection based on a variable passed in at the time of report execution?

thanks

There are several options of how to achieve this on RS 2000:
* Use a custom data processing extension
http://msdn.microsoft.com/library/en-us/RSPROG/htm/rsp_prog_extend_dataproc_5c2q.asp
* Use the SOAP API by calling SetDataSourceContents:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/rsprog/htm/rsp_ref_soapapi_service_lz_2ojd.asp
* Use the linked server functionality of SQL Server. Check MSDN for details:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/acdata/ac_8_qd_12_9ooj.asp
* If the databases are on the same server (SQL 2000), use a dynamic query text (i.e. ="select * from " & Parameters!DatabaseName.Value & "..table")
* If you're just toggling between two or three databases, you can publish the same report multiple times with different names using different data sources. Then write a main report that shows/hides the correct subreport based of whatever criteria you want. (Drawback: bad performance)

If you are running RS 2005, you can use the expression-based connection string approach: Finish the design of the datasets with a constant connection string and make sure everything works. Then, go back to the data tab and open the dataset/data source dialog and change the connection string to be an expression. Use string concatenation to plug in the parameter value. Here is an example of how the RDL would look for a parameter-based connection string:
<DataSources>
<DataSource Name="Northwind">
<ConnectionProperties>
<DataProvider>SQL</DataProvider>
<ConnectString>="data source=" &amp; Parameters!ServerName.Value &amp; ";initial catalog=Northwind;"</ConnectString>
<IntegratedSecurity>true</IntegratedSecurity>
</ConnectionProperties>
</DataSource>
</DataSources>
<ReportParameters>
<ReportParameter Name="ServerName">
<DataType>String</DataType>
<Prompt>ServerName</Prompt>
</ReportParameter>
</ReportParameters>
You can also check this blog posting: http://blogs.msdn.com/bwelcker/archive/2005/04/29/413343.aspx

-- Robert

|||Are you also able to set credentials for access to the Data Source via this approach?or does it only allow you to modify the Data Source itself|||The credentials can only be changed if you go with the SetDataSourceContents approach or if you have your own custom data extension which controls the credentials for the actual data source access independently.

-- Robert

reporting services and msde

hi,
I've a question: Can I use the Reporting Services with MSDE?
Where Can I find the prices of "Reporting Services"?
Thanks
Can I use the Reporting Services with MSDE
-Yes, but only as a source. Reporting Service need an SE or EE Edition for
productional enviroment. For developing DE would be enough.
Where Can I find the prices of "Reporting Services"?
-Prices can be "queried" :-) from your software distributor, depends on your
licencing contract with MS.
-Licensing can be found here:
http://www.microsoft.com/sql/reporting/howtobuy/faq.asp
HTH, Jens Smeyer
http://www.sqlserver2005.de
"Roberta" <roby77@.tiscali.it> schrieb im Newsbeitrag
news:eBUsjTfQFHA.3140@.tk2msftngp13.phx.gbl...
> hi,
> I've a question: Can I use the Reporting Services with MSDE?
> Where Can I find the prices of "Reporting Services"?
> Thanks
>
|||I've a .NET web application that uses MSDE...
I would like to use Reporting Services...
What solution Can I use ? ... if I can't to use Reporting Services
|||-Third party
-Free stuff http://sourceforge.net/projects/sharppdf/ (didnt try it out)
Tell me your experience with that if you choose that.
-best Choice: get a Reporting Server SE/EE ;-)
HTH, Jens Smeyer.
http://www.sqlserver2005.de
"Roberta" <roby77@.tiscali.it> schrieb im Newsbeitrag
news:%23DaIkJhQFHA.812@.TK2MSFTNGP10.phx.gbl...
> I've a .NET web application that uses MSDE...
> I would like to use Reporting Services...
> What solution Can I use ? ... if I can't to use Reporting Services
>
|||I must to use MSDE
and I would like to know a solution for generate reports with
subtotals/totals/... from MSDE query and stored procedure... Can you help
me? What Can I use?
Thanks thanks thanks
|||Hi Roberta,
Currently you need to use something like ActiveReports
(www.DataDynamics.com) but if you are ok to use SQL Server Express, you'll
be able to use new reporting controls in VS.NET 2005.
HTH,
Greg Low [MVP]
MSDE Manager SQL Tools
www.whitebearconsulting.com
"Roberta" <roby77@.tiscali.it> wrote in message
news:%23qA0U5uQFHA.1528@.TK2MSFTNGP09.phx.gbl...
>I must to use MSDE
> and I would like to know a solution for generate reports with
> subtotals/totals/... from MSDE query and stored procedure... Can you
> help
> me? What Can I use?
> Thanks thanks thanks
>
sql

reporting services and mozilla

would someone know what i should to to make my report display in mozilla. I have added a textbox at the bottom of the reports' layout and this only helps a little because only the firts page of the report shows clearly in mozilla. The rest of the pages appear squashed to the left in the mozilla browser.

This is due to a bug in Mozilla code. For your reference:

https://bugzilla.mozilla.org/show_bug.cgi?id=350506

We are investigating a possible workaround which may be available in SP2. Stay tuned.

-Chris

Reporting services and microsoft exchange on the same computer

could u say if there would be a problem with reporting services and
microsoft exchange running on the same computerThere is no reason this shouldn't work, but just evaluate whether your
server can cope with the expected loads from the two apps.
Chris
Dale wrote:
> could u say if there would be a problem with reporting services and
> microsoft exchange running on the same computer|||Just keep on eye on the resource usage - see if CPU is consistently high, or
there is lots of paging.
Basically it depends on usage of both applications.
"Dale" wrote:
> could u say if there would be a problem with reporting services and
> microsoft exchange running on the same computer|||Thank you. Are there any known issues with Windows Server 2003 SP1?
"Mary Bray [SQL Server MVP]" wrote:
> Just keep on eye on the resource usage - see if CPU is consistently high, or
> there is lots of paging.
> Basically it depends on usage of both applications.
>
> "Dale" wrote:
> > could u say if there would be a problem with reporting services and
> > microsoft exchange running on the same computer

Reporting Services and Mapping

I was just wondering if SSRS will support geographical mapping in the
2005 version. I know there are ways to get around it now, but does
anyone know if the 2005 version will support maps out of the box?
Thanks.On 30 Mar 2005 11:14:46 -0800, "Kenny" <kvu@.thereturnexchange.com>
wrote:
>I was just wondering if SSRS will support geographical mapping in the
>2005 version. I know there are ways to get around it now, but does
>anyone know if the 2005 version will support maps out of the box?
>Thanks.
Kenny,
I believe that was being considered. I don't know the current
position.
For SQL Server 2005 Reporting Services you are probably best to ask
questions on the newsgroup at
microsoft.private.sqlserver2005.reportingsvcs. Despite its name it's a
public newsgroup.
Andrew Watt
MVP - InfoPath

Reporting Services and Log Shipping

Hey All,
I setup a log shipped server so we could have a warm
backup but the only way I could make the business case to
spend the money was to use it as a reporting server as
well. Needless to say, people are not that happy about
getting kicked out all the time when the data is loading.
Is there anyway to mask the fact that the data source is
unavailable and just get reporting services to wait until
the load is done and resubmit the query when the
connection is available again.
Thanks,
BryanHave you looked into using execution snapshots. You could set the data to
only be refreshed when the data source is known to be available.
--
-Daniel
This posting is provided "AS IS" with no warranties, and confers no rights.
"bmurtha" <anonymous@.discussions.microsoft.com> wrote in message
news:7ce501c47735$e821d580$a301280a@.phx.gbl...
> Hey All,
> I setup a log shipped server so we could have a warm
> backup but the only way I could make the business case to
> spend the money was to use it as a reporting server as
> well. Needless to say, people are not that happy about
> getting kicked out all the time when the data is loading.
> Is there anyway to mask the fact that the data source is
> unavailable and just get reporting services to wait until
> the load is done and resubmit the query when the
> connection is available again.
> Thanks,
> Bryan

Reporting Services and Linked Server - can't stop execution of pro

Hello,
I have the same problem with Reporting Services and Linked Server.
The Reporting Services receive data source from stored procedure, which
executes inside it stored procedure on the Linked Server. If Reporting
Service successfully forms the report, then everything is OK, but if there
are some troubles (e.g. I close the browser page where report was forming), I
have the problem: the process on the Linked Server doesnâ't stop itself. Itâ's
continuing executing for eternity and locks other processes. The only way to
stop it â' is to kill it. Iâ'll try to set timeouts in the configuration of
Reporting Service and Query Timeout in the Server Options of Linked Server,
but it doesnâ't help. This problem shows itself only if I work through Linked
Server.
Thanks for your help.
Boris.The default timeout for linked server queries is 600 seconds, i.e. 10
minutes. This can be changed in SQL Server using an sp_configure option
"remote query timeout".
Yes, you're right, this is a problem which has nothing to do with Reporting
Services. You may want to repost the relevant part of your question to a SQL
Server forum. You may get more advice on the issue.
HTH
Charles Kangai, MCT, MCDBA
"Boris" wrote:
> Hello,
> I have the same problem with Reporting Services and Linked Server.
> The Reporting Services receive data source from stored procedure, which
> executes inside it stored procedure on the Linked Server. If Reporting
> Service successfully forms the report, then everything is OK, but if there
> are some troubles (e.g. I close the browser page where report was forming), I
> have the problem: the process on the Linked Server doesnâ't stop itself. Itâ's
> continuing executing for eternity and locks other processes. The only way to
> stop it â' is to kill it. Iâ'll try to set timeouts in the configuration of
> Reporting Service and Query Timeout in the Server Options of Linked Server,
> but it doesnâ't help. This problem shows itself only if I work through Linked
> Server.
> Thanks for your help.
> Boris.
>sql