Better understanding of my SQL transactions

Posted by Slew Poke on Stack Overflow See other posts from Stack Overflow or by Slew Poke
Published on 2011-01-15T17:55:09Z Indexed on 2011/01/15 23:53 UTC
Read the original article Hit count: 190

I just realized that my application was needlessly making 50+ database calls per user request due to some hidden coding -- hidden in the sense that between LINQ, persistence frameworks and events it just so turned out that a huge number of calls were being made without me being aware.

Is there a recommended way to analyze individual transactions going to my SQL 2008 database, preferably with some integration to my Visual Studio 2010 environment? I want to be able to 'spy' on individual transactions being made, but only for certain pieces of my code, and without making serious changes to either the code or database.

© Stack Overflow or respective owner

Related posts about sql-server

Related posts about visual-studio