SQL Cmdlets
SQL Server 2012 implements a small number of PowerShell cmdlets for the Database Engine. These cmdlets are available within the SQL Server PowerShell console or if the snap-in is loaded manually, which is not covered in any detail here:
Invoke-PolicyEvaluation—A cmdlet that evaluates a SQL Server Policy-Based Management policy (or policies) against a target server.
Invoke-SqlCmd—A cmdlet that runs any regular T-SQL command and any languages and commands supported by the sqlcmd
utility, which may be more familiar to most users.
Encode-SqlName ...
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.