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?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

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
brejkCommented:
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

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
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
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server 2005

From novice to tech pro — start learning today.