Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying PowerShell for SQL Server Essentials
  • Table Of Contents Toc
PowerShell for SQL Server Essentials

PowerShell for SQL Server Essentials

By : Donabel Santos
3.8 (5)
close
close
PowerShell for SQL Server Essentials

PowerShell for SQL Server Essentials

3.8 (5)
By: Donabel Santos

Overview of this book

This book is written for SQL Server administrators and developers who want to leverage PowerShell to work with SQL Server. Some background with scripting will be helpful but not necessary.
Table of Contents (9 chapters)
close
close
7
A. Implementing Reusability with Functions and Modules
8
Index

Chapter 4. Basic SQL Server Administration

In this chapter, we will look at how to accomplish typical SQL Server administration tasks by using PowerShell. Although you were introduced to SQL Server-specific cmdlets in the previous chapters, these cmdlets are still quite few. Many of the tasks that we will see can be accomplished by using SQL Server Management Objects (SMO). As we encounter new SMO classes, it is best to verify the properties and methods of that class using Get-Help, or by directly visiting the TechNet or MSDN website.

The topics covered in this chapter include how to perform the following tasks:

  • Listing databases and tables
  • Adding files and filegroups
  • Scripting database objects
  • Attaching and detaching databases
  • Backing up and restoring databases
  • Reorganizing or rebuilding indexes
  • Managing logins, users, and permissions
  • Listing policies
  • Managing jobs
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
PowerShell for SQL Server Essentials
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon