New-SqlScriptingOptions

Creates a new Microsoft.SqlServer.Management.Smo.ScriptingOptions.

Syntax

New-SqlScriptingOptions [<CommonParameters>]

Detailed Description

The New-SqlScriptingOptions function creates a new Microsoft.SqlServer.Management.Smo.ScriptingOptions. This class is used for setting various SMO scripting options.

Related Commands

* New-SqlScriptingOptions Get-SqlScripter

Parameters

Name Description Required? Pipeline Input Default Value
         

Input Type

None You cannot pipe objects to New-SqlScriptingOptions

Return Values

Microsoft.SqlServer.Management.Smo.ScriptingOptions New-SqlScriptingOptions returns a Microsoft.SqlServer.Management.Smo.ScriptingOptions object.

Notes

ScriptingOptions can be used with Get-SqlScripter. See get-help Get-SqlScripter for additional information.

Examples

EXAMPLE 1

$scriptingOptions = New-SqlScriptingOptions
This command creates a new SqlScriptingOptions object and assigns output to $scriptingOptions variable.