【发布时间】:2018-04-20 14:43:45
【问题描述】:
我使用的是SqlPackage.exe 的14.0.3811.1 版本
我正在尝试提取一个没有用户/角色和角色成员资格的数据库。
我指定的属性如下:
SqlPackage.exe /Action:Extract /SourceDatabaseName:"Foo" /SourceServerName:"foo\bar" /TargetFile:"C:\temp\Extracted\foo.dacpac" /p:ExtractAllTableData=True /p:DacApplicationName= foo.bar /p:DacMajorVersion=1 /p:DacMinorVersion=0 /p:VerifyExtraction=False /p:ExtractApplicationScopedObjectsOnly=True /p:IgnorePermissions=True /p:IgnoreUserLoginMappings=True
但是,如果我检查提取的 dacpac 文件中的 model.xml 文件,它有各种:
<Element Type="SqlRoleMembership">
<Element Type="SqlRole" Name="[Foo]">
<Element Type="SqlUser" Name="[foo]">
<Element Type="SqlLogin" Name="[foo\bar]" Disambiguator="4">
p:IgnoreUserLoginMappings=true /p:IgnorePermissions=True 和 /p:ExtractApplicationScopedObjectsOnly=True 参数不应该阻止这种情况吗?
【问题讨论】: