cnn 发表于 2015-9-29 08:16:13

使用SharePoint的数据视图,显示现有数据库中的数据[转载]

  看到这篇文章不错,就转过来以备用.
   有很多时候,或许需要在SharePoint站点上显示其他数据库中的一些数据,这个时候,你就需要使用Microsoft Office SharePoint Designer 2007的显示数据视图的功能来实现了。
  首先用Microsoft Office SharePoint Designer 2007这个软件打开站点(题外话:FORM认证的站点目前还不支持Microsoft Office SharePoint Designer 2007连接修改),所以我只能通过windows认证的方式连接到站点了。同时,我希望在首页显示,form认证数据库中现有的注册用户信息。
  1.打开你需要插入数据的页面, 在表格中插入一行。
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin1.png
  2.在新建的表格里面插入数据视图。
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin2.png

  3.点击数据源库-数据库连接-中的连接到数据库…..,再点击"配置数据库连接….";
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin3.png

  4.填写一些连接到数据库服务器的信息,提示:如果数据库和sharepoint在同一个服务器上,你可以在服务器名称中填入"."
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin4.png

  5.系统会有一个安全性的提示,在你没有配置SSO登陆的时候,都会存在这个问题。
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin5.png

  6.这个时候系统会开始连接SQL服务器
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin6.png
  7.连接成功后,开始选择相应的数据表,这个例子里面选择aspnetdb表中的aspnet_Users,点击完成。
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin7.png

  8.在这个页面里面可以先对数据库进行一次筛选和排序,看来功能是相当的强大阿!
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin8.png

  9.点击"显示数据"
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin9.png

  10.选择你需要显示的字段
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin10.png

  11.点击"多项目视图"
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin11.png

  12.OK啦!
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin12.png

  后面的就交给美工吧!
  后来我对显示的数据按照LastActivitvDate进行降序排序,并修改了表格的边框等,最后显示效果如下:
http://www.sharepoint.org.cn/Lists/Photos/060707_0231_SharePoin13.png
  [原文地址]

  
  
  
页: [1]
查看完整版本: 使用SharePoint的数据视图,显示现有数据库中的数据[转载]