Book Image

SQL Server 2014 with Powershell v5 Cookbook

By : Donabel Santos
Book Image

SQL Server 2014 with Powershell v5 Cookbook

By: Donabel Santos

Overview of this book

PowerShell can be leveraged when automating and streamlining SQL Server tasks. PowerShell comes with a rich set of cmdlets, and integrates tightly with the .NET framework. Its scripting capabilities are robust and flexible, allowing you to simplify automation and integration across different Microsoft applications and components. The book starts with an introduction to the new features in SQL Server 2014 and PowerShell v5 and the installation of SQL Server. You will learn about basic SQL Server administration tasks and then get to know about some security-related topics such as the authentication mode and assigning permissions. Moving on, you will explore different methods to back up and restore your databases and perform advanced administration tasks such as working with Policies, Filetables, and SQL audits. The next part of the book covers more advanced HADR tasks such as log shipping and data mirroring, and then shows you how to develop your server to work with BLOB, XML, and JSON. Following on from that, you will learn about SQL Server's BI stack, which includes SSRS reports, the SSIS package, and the SSAS cmdlet and database. Snippets not specific to SQL Server will help you perform tasks quickly on SQL servers. Towards the end of the book, you will find some useful information, which includes a PowerShell tutorial for novice users, some commonly-used PowerShell and SQL Server syntax, and a few online resources. Finally, you will create your own SQL Server Sandbox VMs. All these concepts will help you to efficiently manage your administration tasks.
Table of Contents (15 chapters)
14
Index

Chapter 10. Business Intelligence

In this chapter, we will cover the following topics:

  • Listing items in your SSRS Report Server
  • Listing SSRS report properties
  • Using ReportViewer to view your SSRS report
  • Downloading an SSRS report in Excel and as a PDF
  • Creating an SSRS folder
  • Creating an SSRS data source
  • Changing an SSRS report's data source reference
  • Uploading an SSRS report to Report Manager
  • Downloading all SSRS report RDL files
  • Adding a user with a role to an SSRS report
  • Creating folders in an SSIS package store and MSDB
  • Deploying an SSIS package to a package store
  • Executing an SSIS package stored in a filesystem or a package store
  • Downloading an SSIS package to a file
  • Creating an SSISDB catalog
  • Creating an SSISDB folder
  • Deploying an ISPAC file to SSISDB
  • Executing an SSIS package stored in SSISDB
  • Listing SSAS cmdlets
  • Listing SSAS instance properties
  • Backing up an SSAS database
  • Restoring an SSAS database
  • Processing an SSAS cube