title: How can I monitor the executed sql statements on a SQL Server 2005
body: <p>In a project of mine the SQL statements that are executed against a SQL Server are failing for some unknown reason. Some of the code is already used in production so debugging it is not an easy task. Therefore I need a way to see in the database itself what SQL statements are used, as the statements are generated at runtime by the project and could be flawed when certain conditions are met. </p>
  
  <p>I therefore considered the possibility to monitor the incoming statements and check myself if I see any flaws. </p>
  
  <p>The database is running on a SQL Server 2005, and I use SQL server management studio express as primary tool to manipulate the database. So my question is, what is the best way to do this?</p>