How can i see the SQL Server queries coming from my program?

sql, sql-server

Solution

You can use SQL Profiler to see the queries that goes to your database.

Problem

I have this c# web app that relies heavily on two dll files that i can't see nor edit. The rest of the app is visible and editable. The app generates SQL exceptions, and i would like to see the queries sent from the DLLs. Is there a way to do that?

Original source