日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

【转】SharePoint Content Database简介

發布時間:2023/12/10 编程问答 34 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【转】SharePoint Content Database简介 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

?

SharePoint作為微軟主打的企業Portal平臺,功能強大,使用簡單,非常的方便。對于很多關系數據,我們可以使用自定義列表來維護,如果是非關系數據,可以使用文檔庫來維護。另外還可以在上面進行版本維護,工作流審批,而這一切可以不用寫一行代碼,只需要在界面和SharePoint Designer中進行設置即可完成。

雖然SharePoint很簡單,很容易上手,但是對于開發人員來說,維護在其中的數據又怎么和其他系統進行集成呢,我們可以使用3種方法:

  • 在SharePoint Server使用C#程序,調用SharePoint對象模型,讀取其中的各種數據。
  • 在客戶端調用SharePoint的WebService,讀取其中的數據。
  • 直連SQL Server SharePoint Content數據庫,使用SQL來讀取其中的數據。

前面兩種方法,都是官方推薦的,文檔詳細,介紹較多,我就不講了,我接下來主要研究如何直接讀取SharePoint Content DB的數據。微軟官方肯定是不推薦使用這種方法的,因為這個太底層了,完全脫離了SharePoint的控制,如果對其中數據進行直接的修改,那么可能會產生SharePoint無法預期的數據值。不過做數據庫應用開發的都明白,這種方法執行效率最高,靈活性最大。為了避免寫入無法預期的數據導致SharePoint崩潰,所以我們只是讀取SharePoint Content DB,不做任何Update和Delete操作。要讀取SharePoint Content DB的數據,首先要對其表結構做給基本的了解。

從網上(http://blogs.technet.com/b/praveenh/archive/2010/12/20/inside-a-sharepoint-content-db.aspx)找的一個簡介的表格,介紹了主要的幾個SharePoint Content DB Table:

FeaturesTable that holds information about all the activated features for each site collection or site.
SitesTable that holds information about all the site collections for this content database.
WebsTable that holds information about all the specific sites (webs) in each site collection.
UserInfoTable that holds information about all the users for each site collection.
GroupsTable that holds information about all the SharePoint groups in each site collection.
RolesTable that holds information about all the SharePoint roles (permission levels) for each site.
All ListsTable that holds information about lists for each site.
GroupMembershipTable that holds information about all the SharePoint group members.
AllUserDataTable that holds information about all the list items for each list.
AllDocsTable that holds information about all the documents (and all list items) for each document library and list.
RoleAssignmentTable that holds information about all the users or SharePoint groups that are assigned to roles.
Sched SubscriptionsTable that holds information about all the scheduled subscriptions (alerts) for each user.
ImmedSubscriptionsTable that holds information about all the immediate subscriptions (alerts) for each user.

?

另外再配上了一個圖,說明其中的關系。

?

其中最最重要的就是AllUserData這個表,我們可以從微軟MSDN找的一些對幾個核心表的介紹:

http://msdn.microsoft.com/en-us/library/hh625524(v=office.12).aspx

這個文檔介紹的是最新的SharePoint2013的數據庫結構,如果使用SharePoint2010或者07也不用擔心,大部分字段都是一樣的。如果SharePoint2003,還可以參考官方的另一個文檔:

http://msdn.microsoft.com/en-us/library/dd587562(v=office.11).aspx

當然,僅僅有這么幾個表還不夠,在實際使用中,我們還需要關聯其他的表進行聯合查詢,才能完成我們想要的東西。接下來我會寫幾個Case,一個一個的分析如何查詢對應的表。

總結

以上是生活随笔為你收集整理的【转】SharePoint Content Database简介的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。