Tracing Dynamic SQL in the SQL Profiler
The default template in SQL profiler doesn’t trace the dynamic SQL executed by the stored procedure. In order to trace the Dynamic SQL, you need to turn on these 2 options in your tracing profile
SP:stmtstarting and SQL:stmtstarting