I asked this question myself: Is there a way to use Extended Events to capture the T-SQL of a prepared statement? Why would I be concerned with prepared statements? Wouldn’t sql_batch_completed and rpc_completed cover us? Well, no. What happens when you use sp_prepare? What happens when you’re using an ORM tool that’s using prepared statements? […]
The post Extended Events Capturing the T-SQL of Prepared Statements appeared first on Grant Fritchey.