Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

ScriptOption Properties

The ScriptOption type exposes the following members.

  Name Description
Public property Static member AgentAlertJob Gets an object that specifies whether to include SQL Server Agent alerts and jobs in the script. 
Public property Static member AgentJobId Gets an object that specifies whether to include SQL Server Agent alerts and jobs in the script. 
Public property Static member AgentNotify Gets an object that specifies whether to include notifications for any SQL Server Agent alerts that in the script. 
Public property Static member AllowSystemObjects Gets an object that specifies whether system objects can be scripted or not.
Public property Static member AnsiFile Gets an object that specifies whether the script uses multibyte characters and requires code page 1252 to evaluate characters meaning.
Public property Static member AnsiPadding Gets an object that specifies whether the generated script contains the Transact-SQL statements SET ANSI-PADDING ON and SET ANSI-PADDING OFF before and after the CREATE TABLE statement, respectively.
Public property Static member AppendToFile Gets an object that specifies whether the script is appended to the end of the output file or overwrites it.
Public property Static member Bindings Gets an object that specifies whether the binding statements sp_binddefault and sp_bindrule are included in the generated script. This property applies only when scripting a Microsoft SQL Server table.
Public property Static member ChangeTracking Gets the ChangeTracking property value.
Public property Static member ClusteredIndexes Gets an object that specifies whether statements that define clustered indexes are included in the generated script.
Public property Static member ContinueScriptingOnError Gets an object value that specifies whether the scripting operation continues after an error is encountered.
Public property Static member ConvertUserDefinedDataTypesToBaseType Gets an object value that specifies whether user-defined data types are converted to the most appropriate SQL Server base data types in the generated script. 
Public property Static member DdlBodyOnly Gets an object value that specifies whether to script only the text definition for data definition language (DDL) objects that have a text body, such as stored procedures and triggers.
Public property Static member DdlHeaderOnly Gets an object value that specifies whether to script only the header information for data definition language (DDL) objects that have a text body, such as stored procedures and triggers.
Public property Static member Default Gets an object value that specifies whether the creation of the referenced object is included in the generated script.
Public property Static member DriAll Gets an object value that specifies whether the DRI objects are included in the generated script.
Public property Static member DriAllConstraints Gets an object value that specifies whether all DRI constraints are included in the generated script.
Public property Static member DriAllKeys Gets an object value that specifies whether all DRI keys (DriForeignKeys, DriPrimaryKey, DriUniqueKeys) are included in the generated script.
Public property Static member DriChecks Gets an object value that specifies whether column-specific dependency relationships defined in check constraints with enforced declarative referential integrity are included in the script.
Public property Static member DriClustered Gets an object value that specifies whether dependency relationships defined in clustered indexes with enforced declarative referential integrity are included in the script.
Public property Static member DriDefaults Gets an object value that specifies whether dependency relationships defined in defaults with enforced declarative referential integrity are included in the script.
Public property Static member DriForeignKeys Gets an object value that specifies whether dependency relationships defined in foreign keys with enforced declarative referential integrity are included in the script.
Public property Static member DriIncludeSystemNames Gets an object value that specifies whether the system generated constraint names used to enforce declarative referential integrity are included in the script.
Public property Static member DriIndexes Gets an object value that specifies whether PRIMARY KEY constraints using a unique index to implement the declarative referential integrity are included in the generated script.
Public property Static member DriNonClustered Gets an object value that specifies whether dependency relationships defined in non-clustered indexes with enforced declarative referential integrity are included in the script.
Public property Static member DriPrimaryKey Gets an object value that specifies whether dependency relationships defined in primary keys with enforced declarative referential integrity are included in the script.
Public property Static member DriUniqueKeys Gets an object value that specifies whether dependency relationships defined in unique keys with enforced declarative referential integrity are included in the script.
Public property Static member DriWithNoCheck Gets an object value that specifies whether the no check statement is included in the script.
Public property Static member EnforceScriptingOptions Gets an object value that specifies whether the application of all scripting options is enforced for text base objects, such as SchemaQualify.
Public property Static member ExtendedProperties Gets an object value that specifies whether extended object properties are included in the generated script.
Public property Static member FullTextCatalogs Gets an object value that specifies whether full-text catalogs are included in the generated script.
Public property Static member FullTextIndexes Gets an object value that specifies whether full-text indexes are included in the generated script.
Public property Static member FullTextStopLists Gets an object value that specifies whether full-text stop lists are included in the generated script.
Public property Static member IncludeDatabaseContext Gets an object value that specifies whether database content is included in the generated script.
Public property Static member IncludeDatabaseRoleMemberships Gets the IncludeDatabaseRoleMemberships property value.
Public property Static member IncludeFullTextCatalogRootPath Gets the IncludeFullTextCatalogRootPath property value.
Public property Static member IncludeHeaders Gets an object that specifies whether the generated script is prefixed with a header containing information including the date and time of generation.
Public property Static member IncludeIfNotExists Gets an object that specifies whether to check the existence of an object before including it in the script.
Public property Static member Indexes Gets an object that specifies whether indexes are included in the generated script.
Public property Static member LoginSid Gets or sets the Boolean property value that specifies whether the security identifiers are included for any scripted logins in the generated script.
Public property Static member NoAssemblies Gets an object that specifies whether assemblies are excluded from the generated script.
Public property Static member NoCollation Gets an object value that specifies whether to include the collection in the generated script if the server is running SQL Server 7.0 or later.
Public property Static member NoCommandTerminator Gets an object value that specifies whether individual Transact-SQL statements are delimited in the generated script.
Public property Static member NoExecuteAs Gets an object value that specifies whether the EXECUTE AS options for stored procedures and user-defined functions are included in the script.
Public property Static member NoFileGroup Gets an object value that specifies whether to include the 'ON <filegroup>' clause in the generated script.
Public property Static member NoFileStream Gets an object that specifies whether to include the FILESTREAM_ON clause when you create VarBinaryMax columns in the generated script.
Public property Static member NoFileStreamColumn Gets an object that specifies whether to include the FILESTREAM_ON clause when you create VarBinaryMax columns in the generated script.
Public property Static member NoIdentities Gets an object value that specifies whether definitions of identity property seed and increment are included in the generated script.
Public property Static member NoIndexPartitioningSchemes Gets an object value that specifies whether partition schemes for indexes are included in the generated script.
Public property Static member NoMailProfileAccounts Gets an object value that specifies whether mail accounts referenced by mail profiles are included in the generated script.
Public property Static member NoMailProfilePrincipals Gets an object value that specifies whether principals referenced by mail profiles are excluded from the generated script.
Public property Static member NonClusteredIndexes Gets an object value that specifies whether non-clustered indexes are included in the generated script.
Public property Static member NoTablePartitioningSchemes Gets an object value that specifies whether partition schemes for tables are included in the generated script.
Public property Static member NoVardecimal Gets the NoVardecimal property value.
Public property Static member NoViewColumns Gets an object value that specifies whether to include the specified columns for a view.
Public property Static member NoXmlNamespaces Gets an object value that specifies whether XML namespaces are included in the generated script.
Public property Static member OptimizerData Gets an object value that specifies whether script optimizer data for the referenced objects are included in the generated script.
Public property Static member Permissions Gets an object value that specifies whether to all permissions in the generated script.
Public property Static member PrimaryObject Gets an object value that specifies whether the creation of the referenced object is included in the generated script.
Public property Static member SchemaQualify Gets an object value that specifies whether the script contains object with no schema.
Public property Static member SchemaQualifyForeignKeysReferences Gets an object value that specifies whether tables with no schema that are referenced by a foreign key are included in the generated script.
Public property Static member ScriptBatchTerminator Gets the batch terminator of the script option.
Public property Static member ScriptData Gets the ScriptData property value.
Public property Static member ScriptDataCompression Gets an object value that specifies whether the creation of the referenced object is included in the generated script.
Public property Static member ScriptOwner Gets an object value that specifies whether the creation of the referenced object is included in the generated script.
Public property Static member ScriptSchema Gets the schema of the script option.
Public property Static member Statistics Gets an object value that specifies whether statistics are generated for any table or view included in the generated script.
Public property Static member TimestampToBinary Gets an object value that specifies whether to convert timestamp data types to a binary(8) data types when scripting the creation of a table or user defined data type.
Public property Static member ToFileOnly Gets an object value that specifies whether to output to file only or to generate string output too.
Public property Static member Triggers Gets an object value that specifies whether to include the definition for triggers in the generated script.
Public property Static member WithDependencies Gets an object value that specifies whether to include all dependent objects in the generated script.
Public property Static member XmlIndexes Gets an object value that specifies whether XML indexes are included in the generated script.
Top
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.