The Reporting Services 3-Trick Pony

  • Rodney Landrum

    SSCommitted

    Points: 1898

    Comments posted to this topic are about the item The Reporting Services 3-Trick Pony

  • Bart Hayes-427724

    SSC Enthusiast

    Points: 155

    I'm keen to try this out but cannot create the data source. An error message stating that "expressions cannot be used in a shared data source" appears. How do I create a data source that is not a shared data source? The Solution only has Shared Data Sources.

    Even the Report Wizard stalled at this, there was a warning messages saying "that a connection can not be made to the database" and that "connection string expressions cannot be tested at design time" which is fine but the "next" button would not respond and I could only go back or cancel.

    How did you get around this?

  • Jon Spink

    SSCarpal Tunnel

    Points: 4010

    This is neat, but couldn;t you have the report call itself? Then there's be no need for an SR1 AND an SR2. I do this for a couple of reports where a hyperlink initiates a data update and the report then runs again automatically to show the changed state of the data.

  • Bart Hayes-427724

    SSC Enthusiast

    Points: 155

    I found the answer using the magic of Google.

    A report specific datasource can be created by selecting the Data tab and creating a new dataset. Should have known but funnily enough I've just always used shared datasources.

    Cheers for now.

  • Bart van de Griendt

    Grasshopper

    Points: 18

    It keeps failing on error "Cannot create a connection to data source 'test'.

    I checked the datasets and one of them is referring to 'test'.

    That data source is not available of course.

    I tried to repoint the dataset to the 'DBA_REP.rsd' datasource, but that does not help.

  • Rodney Landrum

    SSCommitted

    Points: 1898

    Thanks for all of your comments so far.

    The "test" data source is not a shared data source. When developing the reports, I used a static datasource for the "test" connection. Yes, I realize, I should have named "test" something else, like "dynamic_server_source". Once the sp_who2 returned results, I then added the dynamic connection string that is in the article.

    Two notes:

    When I downloaded and tested loading in the RDL in a new project this morning everthing went fine except that the data set that execute "sp_who2" reverted to a type of Text. You will need to change dataset2 to be Stored Procedure, not Text.

    And yes...I sheepishly note that SR1 can call itself in a hyperlink. I was just waiting for someone to point that out. 🙂 Actually, that is a great idea, instead of having two reports. Big red palm print on my forehead. I recall starting down that path and hit an error with a invalid nested parameter. Works great, though...thanks for additional the tip Jon.

    Rodney Landrum

    Author (Pro SQL Server 2005 Rpeorting Services - Apress)

  • Rodney Landrum

    SSCommitted

    Points: 1898

    I have asked to place new RDLs in the code download.

    The issue everyone is having with the "TEST" datasource is the default parameter value for the ServerName parameter.

    To address without new code, change the default value to be NULL not Non-Queried.

    Sorry for the oversight.

    Rodney Landrum

  • Tony Davis

    SSCarpal Tunnel

    Points: 4385

    The new RDLs are now in the code download.

    Cheers,

    Tony.

  • jereme.guenther@gmail.com

    SSCarpal Tunnel

    Points: 4259

    Thanks Tony. It is really nice having a larger group of people who can makes these small changes for us. I think poor Steve was getting overwhelmed with the amount of work and time this site was taking.

  • bbychkov

    SSCrazy

    Points: 2146

    This is really cool!

    I'm thinking of using these techniques and combining them with standard SSMS reports and/or performance dashboard reports. That would be a nice muli-server monitoring solution.

    Thanks Rodney!

  • Ryan Austin

    Old Hand

    Points: 373

    I'm still getting the "Cannot create a connection to data source 'test' " error message even though I have changed the DataSet2 to be a Stored Proc.

    I've only added one server to the table for simplicity and still nothing, do I need to pass a service account for credentials or something??

  • Rodney Landrum

    SSCommitted

    Points: 1898

    Try downloading the latest RDLs. There was an issue.

    Rodney

  • Ryan Austin

    Old Hand

    Points: 373

    I did try that and still getting the same problems. :crazy:

  • Ramseier Andreas

    SSC Enthusiast

    Points: 192

    Hi

    The new version works fine within Visual Studio. But if i deploy it to my local report server (Expresion Edition). I had first this error:

    "The 'ServerName' parameter is missing a value "

    -> so i changed the default Paramter for ServerName from default "NULL" to

    ="localhost"

    But now i have to following error when running the report outside from VS:

    "An error has occurred during report processing.

    Cannot create a connection to data source 'test'.

    The feature: "The edition of Reporting Services that you are using requires that you use local SQL Server relational databases for report data sources and the report server database." is not supported in this edition of Reporting Services."

    -> Maybe this reports don't run with express edition?

    Regards

    Any

  • Ryan Austin

    Old Hand

    Points: 373

    Well in my case, its not because its Express, it is the Standard install of SQL2005 with Reporting Services and the tests all work fine when previewing from Visual Studio, so I am a little stumped.

Viewing 15 posts - 1 through 15 (of 22 total)

You must be logged in to reply to this topic. Login to reply