title: SQL Server Profiler - Why are some calls RPC:Completed and Some Calls SQL:BatchCompleted
body: <p>I will be the first to  admit that I often get confused when I use SQL Server profiler. </p>
  
  <p>Having said that, I decided to fire it up to see the SQL that was being generated by experimenting with the Include method of a Db Set. I was going through the music store example where there are Albums, Artists, and Genres.</p>
  
  <p>One thing I noticed was that some calls had an event class of <strong>SQL:BatchCompleted</strong> while others had an event class of <strong>RPC:Completed</strong>. It seemed like the lazy load calls were being traced under the RPC event class. </p>
  
  <p>What is the difference was between these two event classes and why does lazy loading result in an event class of RPC:Completed?</p>