如何查询Sharepoint数据库? [英] How do I query the Sharepoint database?

查看:571
本文介绍了如何查询Sharepoint数据库?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要检索一些数据。如何在Sharepoint数据库上进行查询?

I want to retrieve some data. How can I make a query on a Sharepoint database?

推荐答案

您不应该因为这些原因


  1. 这完全是不受支持的您在安装SharePoint时同意的EULA 。 (我必须添加注释,直接更改或调用触发器(除了一些)不支持,但不选择)

  2. 您的查询不能保证在应用任何补丁或服务包后工作

  3. 直接查询数据库可能会对服务器造成额外的负载,从而影响性能问题。

  4. 直接SELECT

  5. 您的自定义查询可能会导致检索到不正确的数据。

  1. This is completely unsupported by the EULA you agreed to when you installed SharePoint. (I have to add a note that changing or calling triggers (except some) directly is unsupported, but not selecting)
  2. Your queries are not guaranteed to work after applying any patches or service packs to SharePoint since Microsoft could change the database schema anytime.
  3. Directly querying the database can place extra load on a server and hence performance issues.
  4. Direct SELECT statements against the database take shared read locks at the default transaction level so your custom queries might cause deadlocks and hence stability issues.
  5. Your custom queries might lead to incorrect data being retrieved.

让我澄清一下,#1不允许以任何方式修改sharepoint数据库。

Let me clarify, that #1 DOES NOT ALLOW you to modify sharepoint database in any way. SELECT`ing is permitted, however, as mentioned, that may lead to other problems.

,如果您对这些点不感兴趣,则允许使用SELECT。 ,然后只需使用Visual Studio连接到现有的数据库,只需对如何连接到任何其他数据库执行常规过程。

However, if you are not interested in these points, then just use Visual Studio to connect to existing database, just do the regular procedure on how you connect to any other database.

但您可以创建自己的数据库,并在其中存储一些其他信息。

But you can make your own database and store some additional information there.


  1. 使用SharePoint 对象模型(代码只能在SharePoint服务器上运行)

  2. 使用SharePoint WebServices (从任何地方运行代码,从任何应用程序)

  3. SharePoint 2013现在包含 REST API

  1. Use SharePoint Object Model (Code can only be run on SharePoint server)
  2. Use SharePoint WebServices (Run code from anywhere, from any application)
  3. SharePoint 2013 now features REST API.

这篇关于如何查询Sharepoint数据库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆