Partilhar via


ScriptMaker Class

Definition

Provides methods to get SMO objects' scripts

public class ScriptMaker
type ScriptMaker = class
Public Class ScriptMaker
Inheritance
ScriptMaker

Constructors

ScriptMaker()

Default Constructor

ScriptMaker(Server, ScriptingOptions)

Constructs a new ScriptMaker based on the given Server and ScriptingOptions combination

ScriptMaker(Server)

Server Based constructor

Properties

Discoverer

Gets or sets the object used for dependent object discovery.

Preferences

ScriptingPreferences for scripts generated

Prefetch

Prefetch objects scripted or not

Server

Server of objects to be scripted

SourceDatabaseEngineEdition

Database engine edition of the source

Methods

Script(SqlSmoObject[])

Script out object script to Stringcollection

Script(Urn[], ISmoScriptWriter)

Script out the object script to writer

Script(Urn[])

Script out object script to StringCollection

Script(UrnCollection)

Script out object script to StringCollection

Events

ScriptingError

Event to be fired in case of error while scripting

Applies to