Spiga

如何設定 SharePoint 2010 Business Connectivity Services (BCS) 資料傳回數量的限制 ?

當使用 SharePoint 2010 中的 Business Connectivity Services (BCS) 連接外部資料庫時,預設傳回的資料量是有數量限制的 (2000筆),超過的話,External List 這個 webpart 就無法正常顯示,就會出現下列錯誤:

Unable to display this Web Part. To troubleshoot the problem, open this Web page in a Microsoft SharePoint Foundation-compatible HTML editor such as Microsoft SharePoint Designer. If the problem persists, contact your Web server administrator. Correlation ID:b944db82-81bd-40a0-8a1a-ba24c57c1eac

##ReadMore##

可以使用 PowerShell 來放寬限制:

Add-PSSnapin Microsoft.SharePoint.PowerShell

Get-SPServiceApplicationProxy

Get-SPBusinessDataCatalogThrottleConfig
-Scope Database
-ThrottleType Items
-ServiceApplicationProxy 28739dbe-cc48-44e3-b7aa-8693e52d4843

$bdc = Get-SPBusinessDataCatalogThrottleConfig
-Scope Database
-ThrottleType Items
-ServiceApplicationProxy 28739dbe-cc48-44e3-b7aa-8693e52d4843

Set-SPBusinessDataCatalogThrottleConfig
-Identity $bdc
-Maximum 50000
-Default 50000

2 意見:

  Vinci

2009年12月30日 下午4:44

$dbc = Get-SPBusinessDataCatalogThrottleConfig
-Scope Database
-ThrottleType Items
-ServiceApplicationProxy 28739dbe-cc48-44e3-b7aa-8693e52d4843

Set-SPBusinessDataCatalogThrottleConfig
-Identity $bdc
-Maximum 50000
-Default 50000

  匿名

2010年4月30日 晚上7:01

聖哥你好:
目前我在學習如何架設sharepoint 2007,
但是目前卡住了,我有下載你的教學檔來看,
我卡在設定與資料庫的連結那部分,
那訊息是說什麼使用者怎樣跟需要用網域使用者,那網域設定這部分有教學嗎?還有SQL的設定有詳細的教學嗎?或是有更詳細的解說嗎 ?
真是麻煩你了 !!