Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SQL Server Profiler - View Dynamic Sql

I am building and executing some dynamic sql and wanted to use SQL Server profiler to view that execution statement. Do you know what filters /settings I have to use in order to see that? I have looked through them and could be just looking right over the obvious setting.

EDIT:

The dynamic sql is called within a procedure.

Thanks in Advance,

--S

like image 980
scarpacci Avatar asked Sep 01 '10 15:09

scarpacci


1 Answers

Following your edit you would need either the SP:StmtCompleted or SP:StmtStarting events (You can find these in the "Stored Procedures" section).

This might collect quite a lot of data so apply appropriate filters.

like image 163
Martin Smith Avatar answered Sep 18 '22 13:09

Martin Smith