SqlPublishTask Class
Represents an MSBuild task associated with publish target in Microsoft.Data.Tools.Schema.SqlTasks.targets
System.Object
Microsoft.Build.Utilities.Task
Microsoft.Data.Tools.Schema.Tasks.Sql.DataTask
Microsoft.Data.Tools.Schema.Tasks.Sql.SqlDeploymentTask
Microsoft.Data.Tools.Schema.Tasks.Sql.SqlPublishTask
Microsoft.Build.Utilities.Task
Microsoft.Data.Tools.Schema.Tasks.Sql.DataTask
Microsoft.Data.Tools.Schema.Tasks.Sql.SqlDeploymentTask
Microsoft.Data.Tools.Schema.Tasks.Sql.SqlPublishTask
Namespace: Microsoft.Data.Tools.Schema.Tasks.Sql
Assembly: Microsoft.Data.Tools.Schema.Tasks.Sql.10 (in Microsoft.Data.Tools.Schema.Tasks.Sql.10.dll)
The SqlPublishTask type exposes the following members.
| Name | Description | |
|---|---|---|
![]() | AllowDropBlockingAssemblies | Specifies whether SqlClr publishing drops blocking assemblies as part of the deployment plan. By default, any blocking or referencing assemblies block an assembly update if the referencing assembly must be dropped. |
![]() | AllowIncompatiblePlatform | Specifies whether the publish action should go forward despite potentially incompatible SQL Server platforms. |
![]() | BackupDatabaseBeforeChanges | Specifies whether the database backups before deploying any changes. |
![]() | BlockOnPossibleDataLoss | Specifies whether the publish episode is terminated if the publish operation might cause data loss. |
![]() | BlockWhenDriftDetected | Specifies whether to block updating a database whose schema no longer matches its registration or is unregistered. |
![]() | BuildEngine | (Inherited from Task.) |
![]() | BuildEngine2 | (Inherited from Task.) |
![]() | BuildEngine3 | (Inherited from Task.) |
![]() | (Inherited from Task.) | |
![]() | CacheTargetModel | This class supports the product infrastructure and is not intended to be used directly from your code. (Inherited from SqlDeploymentTask.) |
![]() | CommentOutSetVarDeclarations | Specifies whether SETVAR variable declarations are commented out in the generated publish script. You might choose to do this if you plan to use a tool such as SQLCMD.EXE to specify the values on the command line when you publish. |
![]() | CompareUsingTargetCollation | Specifies whether this setting dictates how the database's collation is handled during deployment; by default the target database's collation will be updated if it does not match the collation specified by the source. When this option is set, the target database's (or server's) collation should be used. |
![]() | ContributorArguments | A set of name value pairs provided to customize deployment extensions. (Inherited from SqlDeploymentTask.) |
![]() | CreateNewDatabase | Specifies whether the target database should be updated or whether it should be dropped and re-created when you publish to a database. |
![]() | DeployDatabaseInSingleUserMode | Specifies whether the database is set to Single User Mode before deploying. |
![]() | DisableAndReenableDdlTriggers | Specifies whether Data Definition Language (DDL) triggers are disabled at the beginning of the publish process and re-enabled at the end of the publish action. |
![]() | DoNotAlterChangeDataCaptureObjects | Specifies whether the Change Data Capture objects are not altered. |
![]() | DoNotAlterReplicatedObjects | Specifies whether objects that are replicated are identified during verification. |
![]() | DropConstraintsNotInSource | Specifies whether the publish action drops constraints that do not exist in the database snapshot (.dacpac) from the target database when you publish to a database. |
![]() | DropDmlTriggersNotInSource | Specifies whether the publish action drops Data Manipulation Language (DML) triggers that do not exist in the database snapshot (.dacpac) from the target database when you publish to a database. |
![]() | DropExtendedPropertiesNotInSource | Specifies whether the publish action drops extended properties that do not exist in the database snapshot (.dacpac) from the target database when you publish to a database. |
![]() | DropIndexesNotInSource | Specifies whether the publish action drops indexes that do not exist in the database snapshot (.dacpac) from the target database when you publish to a database. |
![]() | DropObjectsNotInSource | Specifies whether objects that do not exist in the database snapshot (.dacpac) file will be dropped from the target database when you publish to a database. |
![]() | DropPermissionsNotInSource | Specifies whether the publish action permissions that do not exist in the database snapshot (.dacpac) from the target database when you publish to a database. |
![]() | DropRoleMembersNotInSource | Specifies whether the publish action drops role members that do not exist in the database snapshot (.dacpac) from the target database when you publish to a database. |
![]() | GenerateSmartDefaults | Specifies whether SqlPackage.exe provides a default value automatically when it updates a table that contains data with a column that does not allow null values. |
![]() | HostObject | (Inherited from Task.) |
![]() | IgnoreAnsiNulls | Specifies whether to ignore or update differences in the ANSI NULLS setting when you publish to a database. |
![]() | IgnoreAuthorizer | Specifies whether to ignore or update differences in the Authorizer when you publish to a database. |
![]() | IgnoreColumnCollation | Specifies whether to ignore or update differences in column collation when you publish to a database. |
![]() | IgnoreComments | Specifies whether to ignore or update differences in comments order when you publish to a database. |
![]() | IgnoreCryptographicProviderFilePath | Specifies whether to ignore or update differences in the file path for a cryptographic provider when you publish to a database. |
![]() | IgnoreDdlTriggerOrder | Specifies whether to ignore or update differences in the order of Data Definition Language (DDL) triggers when you publish to a database. |
![]() | IgnoreDdlTriggerState | Specifies whether to ignore or update differences in the enabled or disabled state of DDL triggers when you publish to a database. |
![]() | IgnoreDefaultSchema | Specifies whether to ignore or update differences in the default schema when you publish to a database. |
![]() | IgnoreDmlTriggerOrder | Specifies whether to ignore or update differences in the order of DML triggers when you publish to a database. |
![]() | IgnoreDmlTriggerState | Specifies whether to ignore or update differences in the enabled or disabled state of DML triggers when you publish to a database. |
![]() | IgnoreExtendedProperties | Specifies whether to ignore or update differences in extended properties when you publish to a database. |
![]() | IgnoreFileAndLogFilePath | Specifies whether to ignore or update differences in the paths for files and log files when you publish to a database. |
![]() | IgnoreFilegroupPlacement | Specifies whether to ignore or update differences in the placement of FILEGROUP's when you publish to a database. |
![]() | IgnoreFileSize | Specifies whether to ignore or update differences in file sizes when you publish to a database. |
![]() | IgnoreFillFactor | Specifies whether to ignore or update differences in fill factors when you publish to a database. |
![]() | IgnoreFullTextCatalogFilePath | Specifies whether to ignore or update differences in the path to full-text index files when you publish to a database. |
![]() | IgnoreIdentitySeed | Specifies whether to ignore or update differences in the seed for an identity column when you publish to a database. |
![]() | IgnoreIncrement | Specifies whether to ignore or update differences in the increment for an identity column when you publish to a database. |
![]() | IgnoreIndexOptions | Specifies whether to ignore or update differences in the index options when you publish to a database. |
![]() | IgnoreIndexPadding | Specifies whether to ignore or update differences in the index padding when you publish to a database. |
![]() | IgnoreKeywordCasing | Specifies whether to ignore or update differences in the keyword casing when you publish to a database. |
![]() | IgnoreLockHintsOnIndexes | Specifies whether to ignore or update differences in the lock hints on indexes when you publish to a database. |
![]() | IgnoreLoginSids | Specifies whether to ignore or update differences in the security identifier (SID) when you publish to a database. |
![]() | IgnoreNotForReplication | Specifies whether to ignore or update the not-for-replication setting when you publish to a database. |
![]() | IgnoreObjectPlacementOnPartitionScheme | Specifies whether to ignore or update an object’s placement on a partition scheme when you publish to a database. |
![]() | IgnorePartitionSchemes | Specifies whether to ignore or update differences in partition schemes and functions when you publish to a database. |
![]() | IgnorePermissions | Specifies whether to ignore or update differences in permissions when you publish to a database. |
![]() | IgnoreQuotedIdentifiers | Specifies whether to ignore or update differences in quoted identifier settings when you publish to a database. |
![]() | IgnoreRoleMembership | Specifies whether differences in the role membership of logins should be ignored or updated when you publish to a database. |
![]() | IgnoreRouteLifetime | Specifies whether to ignore or update differences in the role memberships of logins when you publish to a database. |
![]() | IgnoreSemicolonBetweenStatements | Specifies whether to ignore or update differences in semicolons between Transact-SQL statements when you publish to a database. |
![]() | IgnoreTableOptions | Specifies whether to ignore or update differences in table options when you publish to a database. |
![]() | IgnoreUserSettingsObjects | Specifies whether to ignore or update differences in user setting options when you publish to a database. |
![]() | IgnoreWhitespace | Specifies whether to ignore or update differences in whitespace when you publish to a database. |
![]() | IgnoreWithNocheckOnCheckConstraints | Specifies whether to ignore or update differences in the value of the WITH NOCHECK clause for check constraints when you publish to a database. |
![]() | IgnoreWithNocheckOnForeignKeys | Specifies whether to ignore or update differences in the value of the WITH NOCHECK clause for foreign keys when you publish to a database. |
![]() | IncludeCompositeObjects | Specifies whether to include all composite elements as part of a single publish operation. |
![]() | IncludeTransactionalScripts | Specifies whether to use transactional statements wherever possible when you publish to a database. |
![]() | Log | (Inherited from Task.) |
![]() | NoAlterStatementsToChangeCLRTypes | Specifies that publish should always drop and re-create an assembly if there is a difference instead of issuing an ALTER ASSEMBLY statement. |
![]() | PopulateFilesOnFileGroups | Specifies whether a new file is also created when you create a new FileGroup in the target database. |
![]() | Publish_TargetConnectionString | Specifies a valid SQL Server or SQL Azure connection string for the target database. If this parameter appears on the command line, the connection string is used exclusively of other target parameters. |
![]() | RegisterDataTierApplication | Specifies whether the schema is registered with the database server. |
![]() | ScriptDatabaseCollation | Specifies whether to ignore or update differences in database collation when you publish to a database. |
![]() | ScriptDatabaseCompatibility | Specifies whether to ignore or update differences in database compatibility when you publish to a database. |
![]() | ScriptDatabaseOptions | Specifies whether to set or update target database properties when you publish to a database. |
![]() | ScriptDeployStateChecks | Specifies whether to generate statements in the publish script to verify that the database and server names match the names specified in the database project. |
![]() | ScriptFile | This class supports the product infrastructure and is not intended to be used directly from your code. (Inherited from SqlDeploymentTask.) |
![]() | ScriptFileSize | Controls whether size is specified when adding a file to a filegroup. |
![]() | ScriptNewConstraintValidation | Specifies whether to verify all constraints as one set at the end of publishing, avoiding data errors caused by a check or foreign key constraint in the middle of the publish action. If this option is False, constraints are published without checking the corresponding data. |
![]() | ScriptRefreshModule | Specifies whether to include refresh statements at the end of the publish script. |
![]() | SourceModel | This class supports the product infrastructure and is not intended to be used directly from your code. (Inherited from SqlDeploymentTask.) |
![]() | SqlPublishProfilePath | Specifies the file path to a DAC Publish Profile. The profile defines a collection of properties and variables to use when generating outputs. |
![]() | TargetDatabaseName | Specifies the name of the target database. |
![]() | TreatVerificationErrorsAsWarnings | Specifies whether to treat errors that occur during publish verification as warnings. The check is performed against the generated deployment plan before the plan is executed against the target database. Plan verification detects problems, such as the loss of target-only objects (for example, indexes), that must be dropped to make a change. Verification also detects situations where dependencies (such as tables or views) exist because of a reference to a composite project, but do not exist in the target database. You might choose to treat verification errors as warnings to get a complete list of issues instead of allowing the publish action to stop when the first error occurs. |
![]() | UnmodifiableObjectWarnings | Specifies whether to generate warnings when differences are found in objects that cannot be modified (for example, if the file size or file paths are different for a file). |
![]() | UpdateDatabase | This class supports the product infrastructure and is not intended to be used directly from your code. (Inherited from SqlDeploymentTask.) |
![]() | VerifyCollationCompatibility | Specifies whether collation compatibility is verified. |
![]() | VerifyDeployment | Specifies whether to perform checks before publishing that stop the publish action if issues are present that might block successful publishing. For example, your publish action might stop if you get errors during publishing because foreign keys on the target database do not exist in the database project. |
| Name | Description | |
|---|---|---|
![]() ![]() | ICancelableTask.Cancel | This class supports the product infrastructure and is not intended to be used directly from your code.Cancels the active operation. (Inherited from DataTask.) |
