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 ...

Get Microsoft® SQL Server 2012 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.