ScriptMaker Class

Definition

Provides methods to get SMO objects' scripts

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

Constructors

Name Description
ScriptMaker()

Default Constructor

ScriptMaker(Server, ScriptingOptions)

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

ScriptMaker(Server)

Server Based constructor

Properties

Name Description
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

Name Description
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

Name Description
ScriptingError

Event to be fired in case of error while scripting

Applies to