首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 企业软件 > 行业软件 >

在SPD中设置外部内容类型为Revert To Self验证模式的有关问题

2012-08-07 
在SPD中设置外部内容类型为Revert To Self验证模式的问题SharePoint和SqlServer不在同一台机器上,为了能用

在SPD中设置外部内容类型为Revert To Self验证模式的问题
SharePoint和SqlServer不在同一台机器上,为了能用外部内容类型连接外部数据库Sqlserver,我在SPD中外部内容类型的"连接属性"中设置身份验证模式为"BDC标识",点"确定"后弹出了一个关于"RevertToSelfAllowed"对话框.然后在SharePoint 2010 Management Shell中执行以下脚本:

VBScript code
$bdc = Get-SPServiceApplication | where {$_ -match "Business Data Connectivity Service"};$bdc.RevertToSelfAllowed = $true;$bdc.Update();

这个脚本据说是解决上面选择"BDC标识"弹出对话框的问题

但脚本执行报错,是权限错误:
VBScript code
Exception setting "RevertToSelfAllowed": "拒绝了对对象 'proc_putObject' (数据库'SharePoint_Config_217f6929-4ac3-49a0-926e-f47d120ac4a7',架构 'dbo')的 EXECUTE 权限。拒绝了对对象 'proc_putDependency' (数据库 'SharePoint_Config_217f6929-4ac3-49a0-926e-f47d120ac4a7',架构 'dbo')的 EXECUTE 权限。拒绝了对对象 'proc_putDependency' (数据库 'SharePoint_Config_217f6929-4ac3-49a0-926e-f47d120ac4a7',架构 'dbo')的 EXECUTE 权限。"At line:1 char:6+ $bdc. <<<< RevertToSelfAllowed = $true;+ CategoryInfo : InvalidOperation: (:) [], RuntimeException+ FullyQualifiedErrorId : PropertyAssignmentException


应该怎么做才能让脚本执行成功?

[解决办法]
以管理员身份运行 命令行! Run as administrator

热点排行