|
Constant
|
Value
|
Description
|
|---|
|
SQLDMOScript_/DatabasePermissions
|
32
|
Generate Transact-SQL database privilege defining script. Database permissions grant or deny statement execution rights.
|
|
SQLDMOScript_Default
|
4
|
SQLDMOScript_PrimaryObject.
|
|
SQLDMOScript_Drops
|
1
|
Generate Transact-SQL to remove referenced component. Script tests for existence prior attempt to remove component.
|
|
SQLDMOScript_/IncludeHeaders
|
131072
|
Generated script is prefixed with a header containing date and time of generation and other descriptive information.
|
|
SQLDMOScript_/IncludeIfNotExists
|
4096
|
Transact-SQL creating a component is prefixed by a check for existence. When script is executed, component is created only when a copy of the named component does not exist.
|
|
SQLDMOScript_Indexes
|
73736
|
SQLDMOScript_ClusteredIndexes, SQLDMOScript_NonClusteredIndexes, and SQLDMOScript_DRIIndexes combined using an OR logical operator. Applies to both table and view objects.
|
|
SQLDMOScript_/NoCommandTerm
|
32768
|
Individual Transact-SQL statements in the script are not delimited using the connection-specific command terminator. By default, individual Transact-SQL statements are delimited.
|
|
SQLDMOScript_/ObjectPermissions
|
2
|
Include Transact-SQL privilege defining statements when scripting database objects.
|
|
SQLDMOScript_/OwnerQualify
|
262144
|
Object names in Transact-SQL generated to remove an object are qualified by the owner of the referenced object. Transact-SQL generated to create the referenced object qualify the object name using the current object owner.
|
|
SQLDMOScript_Permissions
|
34
|
SQLDMOScript_ObjectPermissions and SQLDMOScript_DatabasePermissions combined using an OR logical operator.
|
|
SQLDMOScript_PrimaryObject
|
4
|
Generate Transact-SQL creating the referenced component.
|
|
SQLDMOScript_/TimestampToBinary
|
524288
|
When scripting object creation for a table or user-defined data type, convert specification of timestamp data type to binary(8).
|
|
SQLDMOScript_ToFileOnly
|
64
|
Most SQL-DMO object scripting methods specify both a return value and an optional output file. When used, and an output file is specified, the method does not return the script to the caller, but only writes the script to the output file.
|
|
SQLDMOScript_/UseQuotedIdentifiers
|
-1
|
Use quote characters to delimit identifier parts when scripting object names.
|
|
Constant
|
Value
|
Description
|
|---|
|
SQLDMOScript2_/AgentAlertJob
|
2048
|
Generate Transact-SQL script creating SQL Server Agent service jobs and alerts.
|
|
SQLDMOScript2_AgentNotify
|
1024
|
When scripting an alert, generate script creating notifications for the alert.
|
|
SQLDMOScript2_AnsiFile
|
2
|
Generated script file uses multibyte characters. Code page 1252 is used to determine character meaning.
|
|
SQLDMOScript2_Default
|
0
|
No scripting options specified.
|
|
SQLDMOScript2_EncryptPWD
|
128
|
Encrypt passwords with script. When specified, SQLDMOScript2_UnicodeFile must be specified as well.
|
|
SQLDMOScript2_ExtendedProperty
|
4194304
|
Include extended property scripting as part of object scripting.
|
|
SQLDMOScript2_FullTextCat
|
2097152
|
Command batch includes Transact-SQL statements creating Microsoft Search full-text catalogs.
|
|
SQLDMOScript2_LoginSID
|
8192
|
Include security identifiers for logins scripted.
|
|
SQLDMOScript2_MarkTriggers
|
32
|
Generated script creates replication implementing triggers as system objects. Applies only when scripting replication articles.
|
|
SQLDMOScript2_NoCollation
|
8388608
|
Do not script the collation clause if source is later than SQL Server version 7.0. The default is to generate collation.
|
|
SQLDMOScript2_UnicodeFile
|
4
|
Generated script output file is a Unicode-character text file.
|