Export (0) Print
Expand All
Expand Minimize

ScriptingOptions.ScriptDrops Property

Gets or sets the Boolean property value that specifies whether the script operation generates a Transact-SQL script to remove the referenced component.

Namespace: Microsoft.SqlServer.Management.Smo
Assembly: Microsoft.SqlServer.Smo (in microsoft.sqlserver.smo.dll)

public bool ScriptDrops { get; set; }
/** @property */
public boolean get_ScriptDrops ()

/** @property */
public void set_ScriptDrops (boolean value)

public function get ScriptDrops () : boolean

public function set ScriptDrops (value : boolean)

Property Value

A Boolean value that specifies whether to include drop clauses to remove objects in the generated script. If True, the script operation generates a Transact-SQL script to remove the referenced component. If False (default), the script operation generates a Transact-SQL script to create the referenced component.

If the option is set to True, the script tests for existence before attempting to remove an object.

This namespace, class, or member is supported only in version 2.0 of the Microsoft .NET Framework.


Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.

Target Platforms

Community Additions

ADD
Show:
© 2014 Microsoft