How to Programmatically Deploy a Report Model to a different server

I am attempting to deploy several report models (.SMDL) as well as data sources and reports to a Report Server as part of an installation process.   I am interested in performing the deployment through script(s).  What is a good way to achieve this task?
mjvskAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
brejkConnect With a Mentor Commented:
Yes. If you look into the samples there is an example of CreateReport method usage. Instead of this method you have to use CreateModel method (the code will be very similar as the code for report publishing).
0
 
brejkCommented:
Use rs.exe command line utility. This utility can deploy Reporting Services items such as reports or data sources to a report server (it is used to execute *.rss scripts). Read more in Books Online: http://msdn2.microsoft.com/en-us/library/ms162839.aspx. Also look for sample rss scripts: http://www.codeplex.com/MSFTRSProdSamples/Release/ProjectReleases.aspx?ReleaseId=8406.
0
 
mjvskAuthor Commented:
Can the rs.exe command line utility also be used to deploy the report model files (.SMDL) ?
0
 
gregoirebCommented:
Ive used CreateModel method to deploy the Report Model and ask me for the Data source view when Ive run the script.
Ive concatenated the Report Models and Data source view (I didnt remove any attribute) and Ive succeed to deployed but When Ive tried to create a report starting from that model Ive got another error message.
The type of the data source has not been specified.
An error has occurred during report processing
0
All Courses

From novice to tech pro — start learning today.