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

Is there a way to view the CAML that is running on a SharePoint 2010 installation?

A bit like how you can monitor SQL running on a database with MS-SQL Server - is this possible with CAML and SharePoint?

share|improve this question
up vote 1 down vote accepted

Yes, to a certain extend you can watch CAML being executed by SharePoint Server. Here are the high level steps:

  1. Go to Central Admin -> Monitoring --> Configure Diagnostic Logging -> Expand "SharePoint Foundation" and Check Monitoring

Make sure you select "Verbose" for event log and trace log and then save your settings

You may want to do IIS reset at this point.

  1. Download ULS Viewer and run it

  2. Load From ULS log in the ULS log viewer to start monitoring. Filter the log entries (Edit Menu - > Modify Filter) for condition like "Message contains CAML" so that it shows only relevant messages to you real time.

I am working on a for this at

share|improve this answer

You can use tools like U2U CAML builder and Stramit CamlViewer to see what CAML is generated or use it to roll your own. I don't know of anything that monitors for that type of thing though.

share|improve this answer

Your Answer


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

Not the answer you're looking for? Browse other questions tagged or ask your own question.