VSTS - SQL 服务器数据库部署 - DoNotDropObjectTypes 不是有效参数
VSTS - SQL Server Database Deploy - DoNotDropObjectTypes not a valid argument
我正在尝试使用 SQL Server Database Deploy 发布任务来部署我的 dacpac,我想使用 /p:DoNotDropObjectTypes=Users;Permissions 参数来防止某些对象被删除,但是我在下面收到以下错误:
2018-08-13T15:48:30.2644849Z ##[section]Starting: Deploy using : dacpac
2018-08-13T15:48:30.2655188Z ==============================================================================
2018-08-13T15:48:30.2655399Z Task : SQL Server Database Deploy
2018-08-13T15:48:30.2655603Z Description : Deploy to SQL Server Database using DACPAC or SQL scripts
2018-08-13T15:48:30.2655749Z Version : 0.3.11
2018-08-13T15:48:30.2655878Z Author : Microsoft Corporation
2018-08-13T15:48:30.2656030Z Help : [More Information](https://aka.ms/sqldacpacmachinegroupreadme)
2018-08-13T15:48:30.2656531Z ==============================================================================
2018-08-13T15:48:36.9603826Z *** 'DoNotDropObjectTypes' is not a valid argument for the 'Publish' action.
2018-08-13T15:48:37.2122455Z ##[error]System.Management.Automation.RuntimeException
2018-08-13T15:48:37.2249276Z ##[section]Finishing: Deploy using : dacpac
我也在我的发布配置文件中尝试了这个,但没有在任务中设置额外的参数:
<DropObjectsNotInSource>True</DropObjectsNotInSource>
<DoNotDropPermissions>True</DoNotDropPermissions>
<DoNotDropRoleMembership>True</DoNotDropRoleMembership>
<DoNotDropUsers>True</DoNotDropUsers>
但是 SqlPackage 还是试图删除它们:
Dropping Permission... Dropping Permission... Dropping Permission... Dropping Permission... Dropping Permission... Dropping Permission... Dropping Permission...
我认为 SQL 需要安装 Server Data Tools 您的代理 运行。检查 this MSDN article and this blog post .
我正在尝试使用 SQL Server Database Deploy 发布任务来部署我的 dacpac,我想使用 /p:DoNotDropObjectTypes=Users;Permissions 参数来防止某些对象被删除,但是我在下面收到以下错误:
2018-08-13T15:48:30.2644849Z ##[section]Starting: Deploy using : dacpac
2018-08-13T15:48:30.2655188Z ==============================================================================
2018-08-13T15:48:30.2655399Z Task : SQL Server Database Deploy
2018-08-13T15:48:30.2655603Z Description : Deploy to SQL Server Database using DACPAC or SQL scripts
2018-08-13T15:48:30.2655749Z Version : 0.3.11
2018-08-13T15:48:30.2655878Z Author : Microsoft Corporation
2018-08-13T15:48:30.2656030Z Help : [More Information](https://aka.ms/sqldacpacmachinegroupreadme)
2018-08-13T15:48:30.2656531Z ==============================================================================
2018-08-13T15:48:36.9603826Z *** 'DoNotDropObjectTypes' is not a valid argument for the 'Publish' action.
2018-08-13T15:48:37.2122455Z ##[error]System.Management.Automation.RuntimeException
2018-08-13T15:48:37.2249276Z ##[section]Finishing: Deploy using : dacpac
我也在我的发布配置文件中尝试了这个,但没有在任务中设置额外的参数:
<DropObjectsNotInSource>True</DropObjectsNotInSource>
<DoNotDropPermissions>True</DoNotDropPermissions>
<DoNotDropRoleMembership>True</DoNotDropRoleMembership>
<DoNotDropUsers>True</DoNotDropUsers>
但是 SqlPackage 还是试图删除它们:
Dropping Permission... Dropping Permission... Dropping Permission... Dropping Permission... Dropping Permission... Dropping Permission... Dropping Permission...
我认为 SQL 需要安装 Server Data Tools 您的代理 运行。检查 this MSDN article and this blog post .