Monday, January 3, 2011

CAML Query returns all items

I use CAML Query Builder a lot, a great tool. However, I ran into a situation that the CAML query returns all the items of a list. Thanks to Google, I found a blog entry by Steve Pietrek. His suggestions fix the problem.

Specifically, I did the following:

  1. remove the opening and closing query tag
  2. change the double quote to single quote in the query.