SharePoint 2016文档库所在数据库表的说明(文档库数据库)
?
突然被客戶問一個問題,說數據庫存在哪一個表,這個原本是開發的事,竟然文檔我了,好吧這里記錄一下,以便記憶給客戶匯報。
SharePoint 數據庫表說明:
| Features | Table that holds information about all the activated features for each site collection or site. | 
| Sites | Table that holds information about all the site collections for this content database. | 
| Webs | Table that holds information about all the specific sites (webs) in each site collection. | 
| UserInfo | Table that holds information about all the users for each site collection. | 
| Groups | Table that holds information about all the SharePoint groups in each site collection. | 
| Roles | Table that holds information about all the SharePoint roles (permission levels) for each site. | 
| All Lists | Table that holds information about lists for each site. | 
| GroupMembership | Table that holds information about all the SharePoint group members. | 
| AllUserData | Table that holds information about all the list items for each list. | 
| AllDocs | Table that holds information about all the documents (and all list items) for each document library and list. | 
| RoleAssignment | Table that holds information about all the users or SharePoint groups that are assigned to roles. | 
| Sched Subscriptions | Table that holds information about all the scheduled subscriptions (alerts) for each user. | 
| ImmedSubscriptions | Table that holds information about all the immediate subscriptions (alerts) for each user. | 
?
Alldocs 說明
https://msdn.microsoft.com/en-us/library/hh656481(v=office.12).aspx?
?
所有表位置:
如下表分別存儲文檔庫不同的內容;
select * from [sysobjects] where [type] = 'u' and name like '%doc%' order by [name]
 ?
?
查找方式
select top 10 * from AllDocs a, DocStreams d where d.docID = a.ID select top 10 * from [dbo].[DocsToStreams] select top 10 * from [dbo].[DocStreams] select top 10 * from [dbo].[DocVersionEvents]select * from [sysobjects] where [type] = 'u' and name like '%doc%' order by [name]效果
?
 ?
關于Sharepoint 數據庫的問題,請參考:https://technet.microsoft.com/library/cc678868
?
ms sql server
1、查詢所有表
 select [id], [name] from [sysobjects] where [type] = 'u' order by [name]
 2、查詢所有數據庫
 3、select [name] from [sysdatabases] order by [name]
 查詢表中字段?
 select [name] from [syscolumns] where [name] = 'tableXXX'order by [colid]
oracle
1、查找表的所有索引(包括索引名,類型,構成列):
select t.*,i.index_type from user_ind_columns t,user_indexes i where t.index_name = i.index_name and t.table_name = i.table_name and t.table_name = 要查詢的表
2、查找表的主鍵(包括名稱,構成列):
select cu.* from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and au.constraint_type = 'P' and au.table_name = 要查詢的表
3、查找表的唯一性約束(包括名稱,構成列):
select column_name from user_cons_columns cu, user_constraints au where cu.constraint_name = au.constraint_name and au.constraint_type = 'U' and au.table_name = 要查詢的表
4、查找表的外鍵(包括名稱,引用表的表名和對應的鍵名,下面是分成多步查詢):
select * from user_constraints c where c.constraint_type = 'R' and c.table_name = 要查詢的表
查詢外鍵約束的列名:
select * from user_cons_columns cl where cl.constraint_name = 外鍵名稱
查詢引用表的鍵的列名:
select * from user_cons_columns cl where cl.constraint_name = 外鍵引用表的鍵名
5、查詢表的所有列及其屬性
select t.*,c.COMMENTS from user_tab_columns t,user_col_comments c where t.table_name = c.table_name and t.column_name = c.column_name and t.table_name = 要查詢的表
6、查詢所有表
 select* from tabs
?
SharePoint 所有數據庫說明
一、WSS_Content
后端內容數據庫存儲所有網站內容,包括網站的文檔或文檔庫中的文件,列表數據和Web部件屬性,以及用戶名和權限。?為特定網站的所有數據的內容數據庫。
二、SharePoint_Config
配置數據庫句柄的所有管理部署,請求定向到相應的數據庫和管理后端數據庫的負載平衡。?在前端Web服務器接收到請求的頁在一個特定網站時,它檢查配置數據庫,以確定哪些內容數據庫包含站點的數據。?您可以配置數據庫運行在同一臺計算機作為Web服務器或遠程計算機上運行Microsoft?SQL服務器。?配置數據庫概念相對不變,在微軟sharepoint?server?2010。?在Microsoft?Office?sharepoint?server2007和Windows?SharePoint服務網站地圖表3.0提供的是存儲在配置數據庫內容的有關信息數據庫包含給定站點的數據。?在Windows?SharePoint服務或Microsoft?OfficeSharePoint服務器2007收到請求的URL時,此數據庫中的設置確定網站的內容數據庫包含的數據。?當大型服務器場部署請求提供服務時,在微軟sharepoint?server2010和Windows?SharePoint服務4.0?SiteMap序列化到磁盤以提高性能和降低數據庫的回調操作,可能導致爭用。?
?三、SharePoint_AdminContent
管理中心后端內容數據庫存儲所有網站內容,包括網站的文檔或文檔庫中的文件,列表數據和Web部件屬性,以及用戶名和權限。?為特定網站的所有數據的內容數據庫。?
四、Search_Service?
用爬的數據關聯的屬性數據庫存儲已爬網屬性包括屬性、歷史數據、抓取隊列?
?1、Search_Service_Application_PropertyStoreDB
用爬的數據關聯的屬性數據庫存儲已爬網屬性包括屬性、歷史數據、抓取隊列等。
?2、Search_Service_Application_CrawlStoreDB
?抓取主機已爬網的數據庫數據和抓取數據庫抓取的驅動器是搜索在Microsoft?Officesharepoint?server?數據庫。
3、Search_Service_Application_DB
?管理數據庫的共享服務提供程序數據庫是在Microsoft?Office?SharePoint?server2007和每個搜索應用程序中實例化一次與政府當局對齊組件。?管理數據庫搜索應用程序的主機配置和內容抓取的訪問控制列表ACL。
?五、Web Analytics Service
Web分析服務提供了豐富的分析給你洞察你的網站流量、搜索和SharePoint資產使您更好地了解您的用戶和部署。?與SharePoint網站分析,你可以定制系統,以滿足用戶的需要,優化他們如何使用和發現信息,并為站點創建目標內容。
1、?WebAnalyticsService應用程序_StagingDB
?網絡分析的臨時數據庫是存儲聯合國聚合事實數據的工作數據庫,資產元數據、排隊批數據,并提供短期保留此類內容。
2、WebAnalyticsService應用程序_ReportingDB
網絡分析報告數據庫存儲聚合標準報告表格、事實數據聚合網站用戶組、日期和資產除了診斷信息的元數據。
?六、Shared Services Provider
?共享服務提供商微軟sharepoint?server?2010中的圖層是過時的更換與共享服務的應用程序,了解變化與共享服務提供程序數據庫關聯的數據庫設計
?
?七、User Profile Service
?用戶配置文件服務包括用戶配置文件和我的網站。
?1、User Profile Service Application_ProfileDB
?用戶配置文件數據庫是一個靈活的數據庫存儲和管理用戶和相關信息。?數據庫允許更靈活的架構,支持多種數據類型。?它可以查詢,并且可以更新。?例如,公司可以定義屬性配置文件數據庫中的雇員的記錄。?然后為每個記錄,雇員創建和保存對象。?現在此信息可用在許多方面,例如在web部件,Web服務,或創建基于規則的組或角色。
2、?User Profile Service Application_SocialDB
場性標簽數據庫存儲
?場?性標簽記錄和各自的網址加上信息的概況,并在分類數據庫的前端層在執行/要求。這個數據庫是用于存儲社會標簽和用戶創建的注釋?
3、?User Profile Service Application_SyncDB
同步數據庫是用來存儲的配置和分期數據從外部來源,如Active Directory的配置文件數據的同步。?
 關系圖
總結
以上是生活随笔為你收集整理的SharePoint 2016文档库所在数据库表的说明(文档库数据库)的全部內容,希望文章能夠幫你解決所遇到的問題。
                            
                        - 上一篇: 哈希桶 entry_哈希表代码实现
 - 下一篇: 我国外汇储备创两年新高!储备资产的结构公