SlideShare uma empresa Scribd logo
1 de 27
LEVERAGING MSBUILD TO
AUTOMATE SSRS DEPLOYMENTS
KOEN VERBEECK




                1
WHO AM I?




            2
OUTLINE


 INTRODUCTION
 WHAT IS MSBUILD?
 AUTOMATE YOUR DEPLOYMENT
 TIPS&TRICKS
 CONCLUSION




                        3
INTRODUCTION


 SSIS & SSAS both have (somewhat) easy methods to automate
  deployments
   - DTUTIL
   - XMLA


 ... but what about SSRS?
   - Visual Studio (not automated)
   - RS.exe with VBScripts
        hard to generate yourself and no built-in tool
        RSScripter fills this gap
            - but has some shortcomings
   - MSBuild (open source)
        has a learning curve


                                           4
OUTLINE


 INTRODUCTION
 WHAT IS MSBUILD?
 AUTOMATE YOUR DEPLOYMENT
 TIPS&TRICKS
 CONCLUSION




                        5
WHAT IS MSBUILD?


 platform for building applications
    - typically used in conjunction with Visual Studio
    - project file (XML) controls how MSBuild processes and builds software
         ItemGroup
             - input of the build process
             - typically refers to source files
         Task
             - unit of executable code used to perform build operations
         Target
             - groups tasks together
         Properties
             - key/value pairs configuring the build




                                                  6
WHAT IS MSBUILD?


 requires
    - .NET framework
    - Visual Studio is not required to run MSBuild
 sample (source: Walkthrough: Creating an MSBuild Project File from Scratch)




                                          7
WHAT IS MSBUILD?


 how do we use this to deploy our SSRS projects?
   - SQL Server Reporting Services MSBuild Tasks
        C# open source project on Codeplex by Steven Wright (blog | twitter)
        tasks specify how SSRS objects are deployed to a server
            - uses the SSRS webservice in the background


   - tasks are available for
        SSRS 2008 - Native mode
        SSRS 2008 - Integrated mode
        SSRS 2008R2




                                          8
OUTLINE


 INTRODUCTION
 WHAT IS MSBUILD?
 AUTOMATE YOUR DEPLOYMENT
 TIPS&TRICKS
 CONCLUSION




                        9
AUTOMATE YOUR DEPLOYMENT


 solution consists of the following objects
    - folder with objects to be deployed
         reports & shared data sets
    - bin folder with ssrsmsbuildtasks.dll
         contains actual code
    - ssrsmsbuildtasks.R2.tasks in home folder
         maps tasks to the assembly containing the task implementation
    - MSBuild project file
         specifies what to deploy and in what order
    - batch file to start the build process
         schedule this to automate your deployment




                                          10
AUTOMATE YOUR DEPLOYMENT


 ssrsmsbuildtasks.R2.tasks




                              11
AUTOMATE YOUR DEPLOYMENT


 breakdown of the MSBuild project file
   - project element (required) (line 1)

                                   specifies optional targets




                                         imports build tasks

   - import element     (line 3)

        imports content from one project file into another
        in this solution, tasks are defined in assembly, not in project file itself




                                             12
AUTOMATE YOUR DEPLOYMENT


 PropertyGroups
     - ReportServer: defines URL and folders      (lines 6-12)




     - Target Dependencies   (lines 60-71)




other targets




                                             13
AUTOMATE YOUR DEPLOYMENT


 ItemGroups
   - Reports and DataSets   (lines 15-38)
                                                 set properties   wildcard




                                                                         object path




                                            14
AUTOMATE YOUR DEPLOYMENT


 ItemGroups
   - Data Sources    (lines 41-58)

       needs to be fully specified in project file (no object to import)


                                            name of the data source



                               SQL Server



                                     SSAS




                                            15
AUTOMATE YOUR DEPLOYMENT


 Targets/Tasks   (lines 76-112)

   - GetFullServerURL: uses GetFullURL to find the URL of the webservice




   - DeleteFolders: uses ReportfolderExists & DeleteReportfolder




   - CreateReportingFolders: uses CreateReportFolder




                                     16
AUTOMATE YOUR DEPLOYMENT


 Targets/Tasks

   - CreateConnectionSources: uses CreateReportingDataSource to create
     shared data sets




   - CreateShareDataSet: uses AddShareDataSets to deploy shared data sets




   - DeployReports: uses AddReports




                                   17
AUTOMATE YOUR DEPLOYMENT


 Targets/Tasks
   - SetReportDataSet: uses SetReportDataSet to link reports with shared data
     sets




   - SetReportsDataSource: uses SetReportDataSource to link reports with
     shared data sources




                                     18
OUTLINE


 INTRODUCTION
 WHAT IS MSBUILD?
 AUTOMATE YOUR DEPLOYMENT
 TIPS&TRICKS
 CONCLUSION




                        19
TIPS&TRICKS


 possible to exclude items




 specify aliases for datasets
    - not possible for data sources




                                      20
TIPS&TRICKS


 specify folder properties



 specify authentication




 single report deployment?
    - every data source and dataset has to be redeployed!




                                      21
TIPS&TRICKS


 other objects can be deployed as well
    - subscriptions
         data and e-mail/file
    - schedules


 out of scope for this session
 check out the sample from codeplex




                                  22
OUTLINE


 INTRODUCTION
 WHAT IS MSBUILD?
 AUTOMATE YOUR DEPLOYMENT
 TIPS&TRICKS
 CONCLUSION




                        23
CONCLUSION


 MSBuild uses open source SSRSMSBuildTasks
   - download from Codeplex
 can deploy all SSRS 2008R2 objects
 allows for automatic deployment
 has a learning curve
 has some disadvantages
   - difficult iterative deployments
   - lots of unnecessary warnings
   - hard to debug




                                       24
RESOURCES


   MSBuild
    http://msdn.microsoft.com/en-us/library/vstudio/dd393574.aspx
   Walkthrough: Creating an MSBuild Project File from Scratch
    http://msdn.microsoft.com/en-us/library/vstudio/dd576348.aspx
   MSBuild Command-Line Reference
    http://msdn.microsoft.com/en-us/library/vstudio/ms164311.aspx


   SQL Server Reporting Services MSBuild Tasks
    http://ssrsmsbuildtasks.codeplex.com/
   Jamie Thomson - Deploying Reporting Services reports using msbuild
    http://sqlblog.com/blogs/jamie_thomson/archive/2009/10/31/deploying-reporting-services-
    reports-using-msbuild.aspx




                                            25
Q&A
 26
THANK YOU


koen.verbeeck@ordina.be
@Ko_Ver
http://www.linkedin.com/in/kverbeeck
Blog @ LessThanDot




                               27

Mais conteúdo relacionado

Mais procurados

SQL Server 2008 Overview
SQL Server 2008 OverviewSQL Server 2008 Overview
SQL Server 2008 OverviewDavid Chou
 
1\9.SSIS 2008R2_Training - Introduction to SSIS
1\9.SSIS 2008R2_Training - Introduction to SSIS1\9.SSIS 2008R2_Training - Introduction to SSIS
1\9.SSIS 2008R2_Training - Introduction to SSISPramod Singla
 
SQL Server Reporting Services
SQL Server Reporting ServicesSQL Server Reporting Services
SQL Server Reporting ServicesAhmed Elbaz
 
Basics & Intro to SQL Server Reporting Services: Sql Server Ssrs 2008 R2
Basics & Intro to SQL Server Reporting Services: Sql Server Ssrs 2008 R2Basics & Intro to SQL Server Reporting Services: Sql Server Ssrs 2008 R2
Basics & Intro to SQL Server Reporting Services: Sql Server Ssrs 2008 R2Bala Subra
 
Professional Recycling - SSIS Custom Control Flow Components With Visual Stud...
Professional Recycling - SSIS Custom Control Flow Components With Visual Stud...Professional Recycling - SSIS Custom Control Flow Components With Visual Stud...
Professional Recycling - SSIS Custom Control Flow Components With Visual Stud...Wolfgang Strasser
 
Presentation 1 - SSRS (1)
Presentation 1 - SSRS (1)Presentation 1 - SSRS (1)
Presentation 1 - SSRS (1)Anurag Rana
 
Ssis 2016 RC3
Ssis 2016 RC3Ssis 2016 RC3
Ssis 2016 RC3MSDEVMTL
 
MSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting ServicesMSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting ServicesThejaswi shasthri
 
SSRS 2008 R2
SSRS 2008 R2SSRS 2008 R2
SSRS 2008 R2tomerl
 
SQL Reporting Services
SQL Reporting ServicesSQL Reporting Services
SQL Reporting Servicesneha mittal
 
Reports with SQL Server Reporting Services
Reports with SQL Server Reporting ServicesReports with SQL Server Reporting Services
Reports with SQL Server Reporting ServicesPeter Gfader
 
Programmability enhancements in sql server 2008 r2
Programmability enhancements in sql server 2008 r2Programmability enhancements in sql server 2008 r2
Programmability enhancements in sql server 2008 r2Antonios Chatzipavlis
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfoliopleeloy
 
Bilirs Business Intelligence Portfolio SSRS PPS SP ES Project
Bilirs Business Intelligence Portfolio SSRS PPS SP ES ProjectBilirs Business Intelligence Portfolio SSRS PPS SP ES Project
Bilirs Business Intelligence Portfolio SSRS PPS SP ES ProjectFigen Bilir
 
Difference between sql server 2008 and sql server 2012
Difference between sql server 2008 and sql server 2012Difference between sql server 2008 and sql server 2012
Difference between sql server 2008 and sql server 2012Umar Ali
 
Sql server reporting services
Sql server reporting servicesSql server reporting services
Sql server reporting servicesssuser1eca7d
 
Sql server introduction
Sql server introductionSql server introduction
Sql server introductionRiteshkiit
 

Mais procurados (19)

SSIS Presentation
SSIS PresentationSSIS Presentation
SSIS Presentation
 
SQL Server 2008 Overview
SQL Server 2008 OverviewSQL Server 2008 Overview
SQL Server 2008 Overview
 
1\9.SSIS 2008R2_Training - Introduction to SSIS
1\9.SSIS 2008R2_Training - Introduction to SSIS1\9.SSIS 2008R2_Training - Introduction to SSIS
1\9.SSIS 2008R2_Training - Introduction to SSIS
 
SQL Server Reporting Services
SQL Server Reporting ServicesSQL Server Reporting Services
SQL Server Reporting Services
 
Basics & Intro to SQL Server Reporting Services: Sql Server Ssrs 2008 R2
Basics & Intro to SQL Server Reporting Services: Sql Server Ssrs 2008 R2Basics & Intro to SQL Server Reporting Services: Sql Server Ssrs 2008 R2
Basics & Intro to SQL Server Reporting Services: Sql Server Ssrs 2008 R2
 
Professional Recycling - SSIS Custom Control Flow Components With Visual Stud...
Professional Recycling - SSIS Custom Control Flow Components With Visual Stud...Professional Recycling - SSIS Custom Control Flow Components With Visual Stud...
Professional Recycling - SSIS Custom Control Flow Components With Visual Stud...
 
Presentation 1 - SSRS (1)
Presentation 1 - SSRS (1)Presentation 1 - SSRS (1)
Presentation 1 - SSRS (1)
 
Ssis 2016 RC3
Ssis 2016 RC3Ssis 2016 RC3
Ssis 2016 RC3
 
Tableau Architecture
Tableau ArchitectureTableau Architecture
Tableau Architecture
 
MSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting ServicesMSBI-SQL Server Reporting Services
MSBI-SQL Server Reporting Services
 
SSRS 2008 R2
SSRS 2008 R2SSRS 2008 R2
SSRS 2008 R2
 
SQL Reporting Services
SQL Reporting ServicesSQL Reporting Services
SQL Reporting Services
 
Reports with SQL Server Reporting Services
Reports with SQL Server Reporting ServicesReports with SQL Server Reporting Services
Reports with SQL Server Reporting Services
 
Programmability enhancements in sql server 2008 r2
Programmability enhancements in sql server 2008 r2Programmability enhancements in sql server 2008 r2
Programmability enhancements in sql server 2008 r2
 
Business Intelligence Portfolio
Business Intelligence PortfolioBusiness Intelligence Portfolio
Business Intelligence Portfolio
 
Bilirs Business Intelligence Portfolio SSRS PPS SP ES Project
Bilirs Business Intelligence Portfolio SSRS PPS SP ES ProjectBilirs Business Intelligence Portfolio SSRS PPS SP ES Project
Bilirs Business Intelligence Portfolio SSRS PPS SP ES Project
 
Difference between sql server 2008 and sql server 2012
Difference between sql server 2008 and sql server 2012Difference between sql server 2008 and sql server 2012
Difference between sql server 2008 and sql server 2012
 
Sql server reporting services
Sql server reporting servicesSql server reporting services
Sql server reporting services
 
Sql server introduction
Sql server introductionSql server introduction
Sql server introduction
 

Semelhante a SQLUG MSBUILD SSRS Deployments

Generating Code with Oracle SQL Developer Data Modeler
Generating Code with Oracle SQL Developer Data ModelerGenerating Code with Oracle SQL Developer Data Modeler
Generating Code with Oracle SQL Developer Data ModelerRob van den Berg
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaDr. John Tunnicliffe
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaDr. John Tunnicliffe
 
android sqlite
android sqliteandroid sqlite
android sqliteDeepa Rani
 
Microsoft Cloud BI Update 2012 for SQL Saturday Philly
Microsoft Cloud BI Update 2012 for SQL Saturday PhillyMicrosoft Cloud BI Update 2012 for SQL Saturday Philly
Microsoft Cloud BI Update 2012 for SQL Saturday PhillyMark Kromer
 
MySQL Cluster 8.0 tutorial
MySQL Cluster 8.0 tutorialMySQL Cluster 8.0 tutorial
MySQL Cluster 8.0 tutorialFrazer Clement
 
BI 2008 Simple
BI 2008 SimpleBI 2008 Simple
BI 2008 Simplellangit
 
Obevo Javasig.pptx
Obevo Javasig.pptxObevo Javasig.pptx
Obevo Javasig.pptxLadduAnanu
 
NoSQL and MySQL: News about JSON
NoSQL and MySQL: News about JSONNoSQL and MySQL: News about JSON
NoSQL and MySQL: News about JSONMario Beck
 
SQL Server 2019 Big Data Cluster
SQL Server 2019 Big Data ClusterSQL Server 2019 Big Data Cluster
SQL Server 2019 Big Data ClusterMaximiliano Accotto
 
.NET Fest 2018. Martin Ullrich. MSBuild: Understand and Customize Your .NET B...
.NET Fest 2018. Martin Ullrich. MSBuild: Understand and Customize Your .NET B....NET Fest 2018. Martin Ullrich. MSBuild: Understand and Customize Your .NET B...
.NET Fest 2018. Martin Ullrich. MSBuild: Understand and Customize Your .NET B...NETFest
 
Trivadis TechEvent 2017 Oracle to My SQL Migration - Challenges by Robert Bia...
Trivadis TechEvent 2017 Oracle to My SQL Migration - Challenges by Robert Bia...Trivadis TechEvent 2017 Oracle to My SQL Migration - Challenges by Robert Bia...
Trivadis TechEvent 2017 Oracle to My SQL Migration - Challenges by Robert Bia...Trivadis
 
]po[ Developers: Reporting, Indicators & Dashboards
]po[ Developers: Reporting, Indicators & Dashboards]po[ Developers: Reporting, Indicators & Dashboards
]po[ Developers: Reporting, Indicators & DashboardsKlaus Hofeditz
 
First Look to SSIS 2012
First Look to SSIS 2012First Look to SSIS 2012
First Look to SSIS 2012Pedro Perfeito
 
Light-up-your-out-of-the-box LightSwitch Application
Light-up-your-out-of-the-box LightSwitch ApplicationLight-up-your-out-of-the-box LightSwitch Application
Light-up-your-out-of-the-box LightSwitch ApplicationBoulos Dib
 
USQ Landdemos Azure Data Lake
USQ Landdemos Azure Data LakeUSQ Landdemos Azure Data Lake
USQ Landdemos Azure Data LakeTrivadis
 
Dockerization of Azure Platform
Dockerization of Azure PlatformDockerization of Azure Platform
Dockerization of Azure Platformnirajrules
 
Automated CI with AEM Cloud service
Automated CI with AEM Cloud serviceAutomated CI with AEM Cloud service
Automated CI with AEM Cloud serviceJakub Wadolowski
 
Be a database professional
Be a database professionalBe a database professional
Be a database professionalSayed Ahmed
 

Semelhante a SQLUG MSBUILD SSRS Deployments (20)

Generating Code with Oracle SQL Developer Data Modeler
Generating Code with Oracle SQL Developer Data ModelerGenerating Code with Oracle SQL Developer Data Modeler
Generating Code with Oracle SQL Developer Data Modeler
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
 
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday SloveniaContinuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
Continuous Integration and the Data Warehouse - PASS SQL Saturday Slovenia
 
android sqlite
android sqliteandroid sqlite
android sqlite
 
Microsoft Cloud BI Update 2012 for SQL Saturday Philly
Microsoft Cloud BI Update 2012 for SQL Saturday PhillyMicrosoft Cloud BI Update 2012 for SQL Saturday Philly
Microsoft Cloud BI Update 2012 for SQL Saturday Philly
 
MySQL Cluster 8.0 tutorial
MySQL Cluster 8.0 tutorialMySQL Cluster 8.0 tutorial
MySQL Cluster 8.0 tutorial
 
BI 2008 Simple
BI 2008 SimpleBI 2008 Simple
BI 2008 Simple
 
Obevo Javasig.pptx
Obevo Javasig.pptxObevo Javasig.pptx
Obevo Javasig.pptx
 
NoSQL and MySQL: News about JSON
NoSQL and MySQL: News about JSONNoSQL and MySQL: News about JSON
NoSQL and MySQL: News about JSON
 
SQL Server 2019 Big Data Cluster
SQL Server 2019 Big Data ClusterSQL Server 2019 Big Data Cluster
SQL Server 2019 Big Data Cluster
 
.NET Fest 2018. Martin Ullrich. MSBuild: Understand and Customize Your .NET B...
.NET Fest 2018. Martin Ullrich. MSBuild: Understand and Customize Your .NET B....NET Fest 2018. Martin Ullrich. MSBuild: Understand and Customize Your .NET B...
.NET Fest 2018. Martin Ullrich. MSBuild: Understand and Customize Your .NET B...
 
Trivadis TechEvent 2017 Oracle to My SQL Migration - Challenges by Robert Bia...
Trivadis TechEvent 2017 Oracle to My SQL Migration - Challenges by Robert Bia...Trivadis TechEvent 2017 Oracle to My SQL Migration - Challenges by Robert Bia...
Trivadis TechEvent 2017 Oracle to My SQL Migration - Challenges by Robert Bia...
 
Day2
Day2Day2
Day2
 
]po[ Developers: Reporting, Indicators & Dashboards
]po[ Developers: Reporting, Indicators & Dashboards]po[ Developers: Reporting, Indicators & Dashboards
]po[ Developers: Reporting, Indicators & Dashboards
 
First Look to SSIS 2012
First Look to SSIS 2012First Look to SSIS 2012
First Look to SSIS 2012
 
Light-up-your-out-of-the-box LightSwitch Application
Light-up-your-out-of-the-box LightSwitch ApplicationLight-up-your-out-of-the-box LightSwitch Application
Light-up-your-out-of-the-box LightSwitch Application
 
USQ Landdemos Azure Data Lake
USQ Landdemos Azure Data LakeUSQ Landdemos Azure Data Lake
USQ Landdemos Azure Data Lake
 
Dockerization of Azure Platform
Dockerization of Azure PlatformDockerization of Azure Platform
Dockerization of Azure Platform
 
Automated CI with AEM Cloud service
Automated CI with AEM Cloud serviceAutomated CI with AEM Cloud service
Automated CI with AEM Cloud service
 
Be a database professional
Be a database professionalBe a database professional
Be a database professional
 

SQLUG MSBUILD SSRS Deployments

  • 1. LEVERAGING MSBUILD TO AUTOMATE SSRS DEPLOYMENTS KOEN VERBEECK 1
  • 3. OUTLINE  INTRODUCTION  WHAT IS MSBUILD?  AUTOMATE YOUR DEPLOYMENT  TIPS&TRICKS  CONCLUSION 3
  • 4. INTRODUCTION  SSIS & SSAS both have (somewhat) easy methods to automate deployments - DTUTIL - XMLA  ... but what about SSRS? - Visual Studio (not automated) - RS.exe with VBScripts  hard to generate yourself and no built-in tool  RSScripter fills this gap - but has some shortcomings - MSBuild (open source)  has a learning curve 4
  • 5. OUTLINE  INTRODUCTION  WHAT IS MSBUILD?  AUTOMATE YOUR DEPLOYMENT  TIPS&TRICKS  CONCLUSION 5
  • 6. WHAT IS MSBUILD?  platform for building applications - typically used in conjunction with Visual Studio - project file (XML) controls how MSBuild processes and builds software  ItemGroup - input of the build process - typically refers to source files  Task - unit of executable code used to perform build operations  Target - groups tasks together  Properties - key/value pairs configuring the build 6
  • 7. WHAT IS MSBUILD?  requires - .NET framework - Visual Studio is not required to run MSBuild  sample (source: Walkthrough: Creating an MSBuild Project File from Scratch) 7
  • 8. WHAT IS MSBUILD?  how do we use this to deploy our SSRS projects? - SQL Server Reporting Services MSBuild Tasks  C# open source project on Codeplex by Steven Wright (blog | twitter)  tasks specify how SSRS objects are deployed to a server - uses the SSRS webservice in the background - tasks are available for  SSRS 2008 - Native mode  SSRS 2008 - Integrated mode  SSRS 2008R2 8
  • 9. OUTLINE  INTRODUCTION  WHAT IS MSBUILD?  AUTOMATE YOUR DEPLOYMENT  TIPS&TRICKS  CONCLUSION 9
  • 10. AUTOMATE YOUR DEPLOYMENT  solution consists of the following objects - folder with objects to be deployed  reports & shared data sets - bin folder with ssrsmsbuildtasks.dll  contains actual code - ssrsmsbuildtasks.R2.tasks in home folder  maps tasks to the assembly containing the task implementation - MSBuild project file  specifies what to deploy and in what order - batch file to start the build process  schedule this to automate your deployment 10
  • 11. AUTOMATE YOUR DEPLOYMENT  ssrsmsbuildtasks.R2.tasks 11
  • 12. AUTOMATE YOUR DEPLOYMENT  breakdown of the MSBuild project file - project element (required) (line 1) specifies optional targets imports build tasks - import element (line 3)  imports content from one project file into another  in this solution, tasks are defined in assembly, not in project file itself 12
  • 13. AUTOMATE YOUR DEPLOYMENT  PropertyGroups - ReportServer: defines URL and folders (lines 6-12) - Target Dependencies (lines 60-71) other targets 13
  • 14. AUTOMATE YOUR DEPLOYMENT  ItemGroups - Reports and DataSets (lines 15-38) set properties wildcard object path 14
  • 15. AUTOMATE YOUR DEPLOYMENT  ItemGroups - Data Sources (lines 41-58)  needs to be fully specified in project file (no object to import) name of the data source SQL Server SSAS 15
  • 16. AUTOMATE YOUR DEPLOYMENT  Targets/Tasks (lines 76-112) - GetFullServerURL: uses GetFullURL to find the URL of the webservice - DeleteFolders: uses ReportfolderExists & DeleteReportfolder - CreateReportingFolders: uses CreateReportFolder 16
  • 17. AUTOMATE YOUR DEPLOYMENT  Targets/Tasks - CreateConnectionSources: uses CreateReportingDataSource to create shared data sets - CreateShareDataSet: uses AddShareDataSets to deploy shared data sets - DeployReports: uses AddReports 17
  • 18. AUTOMATE YOUR DEPLOYMENT  Targets/Tasks - SetReportDataSet: uses SetReportDataSet to link reports with shared data sets - SetReportsDataSource: uses SetReportDataSource to link reports with shared data sources 18
  • 19. OUTLINE  INTRODUCTION  WHAT IS MSBUILD?  AUTOMATE YOUR DEPLOYMENT  TIPS&TRICKS  CONCLUSION 19
  • 20. TIPS&TRICKS  possible to exclude items  specify aliases for datasets - not possible for data sources 20
  • 21. TIPS&TRICKS  specify folder properties  specify authentication  single report deployment? - every data source and dataset has to be redeployed! 21
  • 22. TIPS&TRICKS  other objects can be deployed as well - subscriptions  data and e-mail/file - schedules  out of scope for this session  check out the sample from codeplex 22
  • 23. OUTLINE  INTRODUCTION  WHAT IS MSBUILD?  AUTOMATE YOUR DEPLOYMENT  TIPS&TRICKS  CONCLUSION 23
  • 24. CONCLUSION  MSBuild uses open source SSRSMSBuildTasks - download from Codeplex  can deploy all SSRS 2008R2 objects  allows for automatic deployment  has a learning curve  has some disadvantages - difficult iterative deployments - lots of unnecessary warnings - hard to debug 24
  • 25. RESOURCES  MSBuild http://msdn.microsoft.com/en-us/library/vstudio/dd393574.aspx  Walkthrough: Creating an MSBuild Project File from Scratch http://msdn.microsoft.com/en-us/library/vstudio/dd576348.aspx  MSBuild Command-Line Reference http://msdn.microsoft.com/en-us/library/vstudio/ms164311.aspx  SQL Server Reporting Services MSBuild Tasks http://ssrsmsbuildtasks.codeplex.com/  Jamie Thomson - Deploying Reporting Services reports using msbuild http://sqlblog.com/blogs/jamie_thomson/archive/2009/10/31/deploying-reporting-services- reports-using-msbuild.aspx 25