SQL: See the TSQL underneath the sp_execute calls

When use SQL Server Profiler, on the Events Selection tab, check Show all events; Find the Store Procedures event, check SP:StmtStarting and/or SP:StmtCompleted/... as you need.

原文地址:https://www.cnblogs.com/hellohelloworld/p/5018692.html