reporting services - How to read SQL Server Report history programatically? -


SQL Reporting Services Questions - For SQL Server 2008

Given that the SQL Server Reporting Service scheduler using SQL reports running, does anyone read the history of a report programmatically (via C #) to the report server (And then probably retrieve results from the report)?

After some more excavation, it seems that I need to create a WSDL for the report server and then get the information using the Reporting Services object - did anyone ever before this (2008 With) and can provide some pointers?

Note: Look for WSDL Address (according to SQL 2008 books online) for SQL 2008:

  http: //server/reportserver/reportservice2005.asmx? Wsdl  

If I can get this work, then I take the basic steps to implement it :) It is a bit confusing because the documentation is a combination of SQL 2000 and SQL 2005 reference!

OK, so I have actually figured out how it would have worked out impossible tasks Go.

Before I begin, let me tell you that if you have SQL Server Reporting Services 2008 (SSR02) and is (i.e. you have no choice) original authentication , You only WCF based service stub & amp; IIS I am going to blog about the configuration later.

The short answer is as follows:

  • Connect (such as the new Reporting Services 2005 () or Reporting Services 2005 Soap Client ())
< P> Note: It is easy to use the old (pre-WCF) ASMX service, but it is not impossible to use the new CF version Authentication takes some configurations There are also some minor syntax changes between versions.

  • Find the report you are looking for, e.g. Report History History [Report] History = Report Server List Report History (@ "/ Reports / MyHeadRport");
  • Get HistoryID from whatever snapshot you want (returned from the list history report)
  • Now, use a report viewer to present the historical report, Just like any other report, for example:

    ReportViewer rv = new ReportViewer ();
    rv.processingmode = ProcessingMode.Remote;
    > Rv.ServerReport.ReportServerUrl = new Uri (@ "");
    RV Sir Brin Report Report Path = @ "/ Report / MyHeadRport";
    RV Sarwar report. History History = History Edi; Byte Warning ;


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -