共用方式為


Microsoft.SqlServer.Management.SqlScriptPublish Namespace

Classes

DatabaseCollection
DatabaseEntity
ScriptEventArgs

Script event args for progress and error events

ScriptItemsArgs

Script Urn items args

ScriptOutputOptions

Output options for Scripting

SqlPublishOptions
SqlScriptGenerator

Class that implements script generation based on a SqlScriptPublishModel

SqlScriptOptions

Designer-friendly class that defines the options that can be set for publishing SQL scripts using SqlScriptPublishModel

SqlScriptPublishException

Exception that is raised when script generation fails

SqlScriptPublishModel

Class for describing the set of database objects to script and how to script them

Interfaces

IScriptPublishOptions

Defines settings that control the formatting of scripts and which types of objects are included

Enums

DatabaseObjectType

Enum for database object types To support localized description, it uses LocalizedEnumConverter.

OutputType

The type of output to create. Only one type is allowed, this enumeration exists for backward compatibility.

ResultType

Result enum type To support localized description, it uses LocalizedEnumConverter.

ScriptDestination

Generate script output destination

ScriptFileMode

Generate script file overwrite option

ScriptFileType

Generate script unicode, ansi, and explicit utf8 type

SqlPublishOptions.PublishStatisticsOptions
SqlScriptOptions.BooleanTypeOptions

Defines potential values for boolean property types

SqlScriptOptions.ScriptCompatabilityOptions
SqlScriptOptions.ScriptCompatibilityOptions

Defines the compatibility level of the script feature set

SqlScriptOptions.ScriptCreateDropOptions

Defines options for scripting Create, Drop, or Drop and Create

SqlScriptOptions.ScriptDatabaseEngineEdition

Defines the edition of SQL Server for the script

SqlScriptOptions.ScriptDatabaseEngineType

Defines whether the script will be for on-premises SQL Server or for Azure SQL Database

SqlScriptOptions.ScriptStatisticsOptions

Defines options for scripting statistics

SqlScriptOptions.TypeOfDataToScriptOptions

Defines options for scripting schema, data, or both