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

Table of Contents (21 chapters)
SQL Server 2014 with PowerShell v5 Cookbook
Credits
About the Author
Acknowledgments
About the Reviewers
www.PacktPub.com
Preface
Index

Chapter 7. Audit and Policies

In this chapter, we will cover the following topics:

  • Enabling/disabling change tracking

  • Configuring SQL Server Audit

  • Listing facets and their properties

  • Listing policies

  • Exporting a policy

  • Importing a policy

  • Creating a condition

  • Creating a policy

  • Evaluating a policy

  • Running and saving a profile trace event

  • Extracting the contents of a trace file