SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to get changes from a content database. Below is the code I have used to get the changes, but I get zero results. How to make it work?

 SPChangeQuery query = new SPChangeQuery(false, false);
 query.Group = true;
 query.GroupMembershipAdd = true;
 query.GroupMembershipDelete = true;
 SPUserCollection users = rootWeb.AllUsers;
 SPChangeCollection changes = spSite.ContentDatabase.GetChanges(query);
share|improve this question

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.