我正在尝试使用此命令导入托管元数据备份
#Import
$mms2 = "d951cf6b-3415-400f-8e6c-c27575f697ab" #--This sets the importing MMS ID
$mms2proxy = Get-SPServiceApplicationProxy | ?{$_.TypeName -eq "Managed Metadata Service Connection"} #-- Assuming there is one Proxy , If you have more , get the correct one based on ID
Import-SPMetadataWebServicePartitionData -Identity $mms2 -ServiceProxy $mms2proxy -path D:\Installers\BackupManagedMetadata\September24\qa.cab -OverwriteExisting
但我得到了这个奇怪的错误。
Import-SPMetadataWebServicePartitionData : You do not have permission to use the bulk load statement.
At line:3 char:1
+ Import-SPMetadataWebServicePartitionData -Identity $mms2 -ServiceProxy $mms2prox ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidData: (Microsoft.Share...cePartitionData:SPCmdletImportM...cePartitionData) [Import-SPMetadataWebServicePartitionData], FaultException`1
+ FullyQualifiedErrorId : Microsoft.SharePoint.Taxonomy.Cmdlet.SPCmdletImportMetadataWebServicePartitionData
我用来执行powershell的用户是本地管理员和服务器场管理员。 这看起来像是一个sql权限问题。
答案 0 :(得分:2)