Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 20764

Handling database restore in SSRS report

$
0
0

I have a report that references a shared data source.  The connection string contains Intitial Catalog=MyDatabase.  When MyDatabase is in the middle of a restore it would be nice to give the users of the report a message like "Hey, the report will be available shortly, don't call the helpdesk, it's not the end of the world... yet" rather than

"An error has occurred during report processing. (rsProcessingAborted)
Cannot create a connection to data source 'DataSource1'. (rsErrorOpeningConnection)
For more information about this error navigate to the report server on the local server machine, or enable remote errors"

Related, but a little different, is the issue when a data source does not include an Initial Catalog specification but more than one database in the data set.  Consider this example.

SELECT *
  FROM MyDatabase.dbo.TheTable
		  JOIN AnotherDatabase.dbo.AnotherTable ON ...
If either MyDatabase or AnotherDatabase is unavailable it would be nice to display the same kind of message.

SSRS seems to lack basic error handling like this.  Any options?


Viewing all articles
Browse latest Browse all 20764

Trending Articles