What you are asking can be quite a complex task, especially if application code is using dynamic SQL statements in lieu of stored procedures. That said might I refer you to the Dynamic Management Views available in SQL 2005. Look up those listed to determine if any of them will give you some of the answers you are searching for.
The URL is:
http://www.sqlservercentral.com/Forums/Post.aspx?SessionID=pxttob3cwyj5tn45jvrl4sex
If everything seems to be going well, you have obviously overlooked something.
Ron
Please help us, help you -before posting a question please read[/url]
Before posting a performance problem please read[/url]