Book description
If you work with SQL Server, dbatools is a lifesaver. This book will show you how to use this free and open source PowerShell module to automate just about every SQL server task you can imagine—all in just one month!In Learn dbatools in a Month of Lunches you will learn how to:
- Perform instance-to-instance and customized migrations
- Automate security audits, tempdb configuration, alerting, and reporting
- Schedule and monitor PowerShell tasks in SQL Server Agent
- Bulk-import any type of data into SQL Server
- Install dbatools in secure environments
Written by a group of expert authors including dbatools creator Chrissy LeMaire, Learn dbatools in a Month of Lunches teaches you techniques that will make you more effective—and efficient—than you ever thought possible. In twenty-eight lunchbreak lessons, you’ll learn the most important use cases of dbatools and the favorite functions of its core developers. Stabilize and standardize your SQL server environment, and simplify your tasks by building automation, alerting, and reporting with this powerful tool.
About the Technology
For SQL Server DBAs, automation is the key to efficiency. Using the open-source dbatools PowerShell module, you can easily execute tasks on thousands of database servers at once—all from the command line. dbatools gives you over 500 pre-built commands, with countless new options for managing SQL Server at scale. There’s nothing else like it.
About the Book
Learn dbatools in a Month of Lunches teaches you how to automate SQL Server using the dbatools PowerShell module. Each 30-minute lesson introduces a new automation that will make your daily duties easier. Following the expert advice of dbatools creator Chrissy LeMaire and other top community contributors, you’ll learn to script everything from backups to disaster recovery.
What's Inside
- Performing instance-to-instance and customized migrations
- Automating security audits, best practices, and standardized configurations
- Administering SQL Server Agent including running PowerShell scripts effectively
- Bulk-importing many types of data into SQL Server
- Executing advanced tasks and increasing efficiency for everyday administration
About the Reader
For DBAs, accidental DBAs, and systems engineers who manage SQL Server.
About the Authors
Chrissy LeMaire is a GitHub Star and the creator of dbatools. Rob Sewell is a data engineer and a passionate automator. Jess Pomfret and Cláudio Silva are data platform architects. All are Microsoft MVPs.
Quotes
All SQL Server professionals should learn dbatools. With its combination of knowledge transfer, anecdotes, and hands-on labs, this book is the perfect way.
- From the Foreword by Anna Hoffman, Databases Product Management, Microsoft
Excellent guide for dbatools with lots of practical tips! Required reading for anyone interested in dbatools.
- Ruben Vandeginste, PeopleWare
A must-have for any SQL server developer.
- Raushan Kumar Jha, Microsoft
If you want to automate all vital aspects of SQL Server, wait no more! Learn dbatools in a month, with guidance from the best minds in the business.
- Ranjit Sahai, RAM Consulting
Publisher resources
Table of contents
- inside front cover
- Learn dbatools in a Month of Lunches
- Copyright
- dedication
- contents
- front matter
- 1 Before you begin
- 2 Installing dbatools
- 3 The dbatools lab
- 4 A gentle introduction to dbatools commands
-
5 Writing to SQL Server
- 5.1 Piping commands
-
5.2 Writing to a database
- 5.2.1 Importing from a CSV file to a database table
- 5.2.2 Importing to a database table from a dbatools command
- 5.2.3 Creating the database table first and then importing from a CSV file
- 5.2.4 Writing the results of other commands to a table
- 5.2.5 Writing the results of other commands to an Azure SQL Database
- 5.3 Copying tables, including their data
- 5.4 Hands-on lab
- 6 Finding SQL Server instances on your network
- 7 Inventorying your SQL estate
- 8 Registered Servers
- 9 Logins and users
- 10 Backups
- 11 Restore
- 12 Snapshots
- 13 Install and update SQL Server
- 14 Preparing for disaster
- 15 Performing your first advanced SQL Server instance migration, part 1
- 16 Performing your first advanced SQL Server instance migration, part 2
- 17 High availability and disaster recovery
- 18 PowerShell and SQL Server Agent
- 19 SQL Server Agent administration
- 20 Creating and working with SQL Server Agent objects
- 21 Data masking
- 22 DevOps automation
- 23 Tracing SQL Server activity
- 24 Security and encryption
-
25 Data compression
- 25.1 Types of compression
- 25.2 How does rowstore data compression work?
- 25.3 Why use data compression?
- 25.4 It can’t all be rainbows and unicorns: Compression drawbacks
- 25.5 What’s compressed?
- 25.6 What should we compress?
- 25.7 What makes a good candidate for compression?
- 25.8 dbatools, what should I compress?
- 25.9 Compressing objects the old-fashioned way
- 25.10 dbatools to the rescue!
- 25.11 Specifying the compression level
- 25.12 Advanced settings
- 25.13 Hands-on lab
- 26 Validating your estate with dbachecks
- 27 Working in the cloud
- 28 dbatools configurations and logging
- 29 Never the end
- index
Product information
- Title: Learn dbatools in a Month of Lunches
- Author(s):
- Release date: July 2022
- Publisher(s): Manning Publications
- ISBN: 9781617296703
You might also like
book
Learn SQL Server Administration in a Month of Lunches
Learn SQL Server Administration in a Month of Lunches is the perfect way to get started …
book
Learn Azure in a Month of Lunches, Second Edition
You can be incredibly productive with Azure without mastering every feature, function, and service. Learn Azure …
book
Learn PowerShell Scripting in a Month of Lunches
GET MORE WITH MANNING An eBook copy of the previous edition, Learn PowerShell Toolmaking in a …
book
Learn Docker in a Month of Lunches
Go from zero to production readiness with Docker in 22 bite-sized lessons! Learn Docker in a …