Microsoft® SQL Server 2012 Unleashed
by Ray Rankins, Paul T. Bertucci, Chris Gallelli, Alex T. Silverstein
SQL Server PowerShell
SQL Server PowerShell (SQLPS) is implemented differently in SQL Server 2012. In earlier versions, it was implemented as a PowerShell 1.0 minishell. This implementation resulted in a restricted version of the PowerShell console. In other words, several of the core cmdlets were not available in SQL Server PowerShell, and others might not work exactly the same way.
SQL Server 2012 now provides a Windows PowerShell module named SQLPS that is used to import the SQL Server components into a Windows PowerShell 2.0 environment or script. Modules are new to Windows PowerShell 2.0. The SQLPS module loads 2 Windows PowerShell snap-ins that implement a SQL Server provider and a set of cmdlets that support SQL Server actions. When the ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access