sharepoint您无权使用批量加载语句

时间:2013-09-25 08:10:28

标签: sql sharepoint

我正在尝试使用此命令导入托管元数据备份

#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权限问题。