代码改变世界

使用SharePoint Designer 2010 设计BDCin SharePoint Foundation Server

2010-06-08 17:21  轩脉刃  阅读(524)  评论(1编辑  收藏  举报

BDC(Business Data Connectivity):企业拥有自己的数据库,BDC将这个数据库按照分布到BCS模型中。

 

环境要求:SharePoint Foundation 2010;

     SharePoint Designer 2010;

     SQL Server 2008;

目标:将SQL Server 2008 中的Employee表使用BDC分配到Sharepoint web(http://SUT02)

 

1,确保数据库中已经有表Employee:

 

2,使用SharePoint Designer 打开 http://SUT02

 

3,点击左边面板的Site Object的 External Content Types 

  右边弹出External Content Types面板

  点击左上角External Content Type

 

4,输入Name和DisplayName(设为“Employee”)

点击External System 后面的 “Click here to discover...” 链接

 

5,点击Add Connection

Source制定为SQL,并在弹出的对话框中填入Server 和 database的name

 

6,在Data Source Explore中右击Employee 表,选择 Create all operation

 select Id as Picker--> next --> finish -->save

 

 

7,点击Create Lists&Form 按钮

在弹出的对话框中填写ListName 和List Description

 

 

8, 有的时候需要设置权限,在Centrial Administration site中选择application Service,edit,set object permission。

具体细节此处省略:

http://technet.microsoft.com/en-us/library/ee524076.aspx#setpermissions

 

9, 进入 http://SUT02

看到有EmployeeList表:

 

大功告成~!~!呼呼~~