DacDeployOptions.TreatVerificationErrorsAsWarnings 属性

定义

获取或设置布尔值,指定是否将发布验证期间发生的错误视为警告。 在针对目标数据库执行计划之前,会针对生成的部署计划执行检查。 计划验证会检测问题,例如丢失仅目标对象(例如索引),必须删除这些对象才能进行更改。 验证还会检测由于对复合项目的引用而存在依赖项(如表或视图)但目标数据库中不存在的情况。 可以选择将验证错误视为警告,以获取问题的完整列表,而不是允许发布操作在第一次错误发生时停止。

public bool TreatVerificationErrorsAsWarnings { get; set; }
[Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "TreatVerificationErrorsAsWarnings")]
public bool TreatVerificationErrorsAsWarnings { get; set; }
member this.TreatVerificationErrorsAsWarnings : bool with get, set
[<Microsoft.SqlServer.Dac.OptionDescription(typeof(Microsoft.Data.Tools.Schema.Sql.CommandLine.CommandLineResources), "TreatVerificationErrorsAsWarnings")>]
member this.TreatVerificationErrorsAsWarnings : bool with get, set
Public Property TreatVerificationErrorsAsWarnings As Boolean

属性值

真 将错误视为警告;否则为 false。 默认值为 false。

属性

适用于