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

SQL Server via PowerShell

There are several ways to work with SQL Server via PowerShell. The way you choose to work will largely depend not only on what version of SQL Server and PowerShell you have, but also on what you want to do with SQL Server.

Mini-shell (or the sqlps utility)

Starting from SQL Server 2008, SQL Server was shipped with what used to be called a mini-shell (the sqlps utility). Back then, the mini-shell was a limited PowerShell console specifically bundled with SQL Server, which preloaded the sqlps utility, which in turn preloaded the session with the SQL Server PowerShell providers and cmdlets.

The mini-shell can be invoked in a couple of ways. One way is to go to SQL Server Management Studio (SSMS) and right-click on a SQL Server object and choose Start PowerShell. The following screenshot shows what you will see on a SQL Server 2014 interface, which is not that different from what you will see in SQL Server 2008, SQL Server 2008 R2, and SQL Server 2012:

Mini-shell (or the sqlps utility)

Once you click...

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