user7042812
user7042812

Reputation: 133

Extended Events SQL Server Select Query

Which XEvents fire on simple select * from table query ? I want to test something and can't find easily testable XEvent.

Upvotes: 0

Views: 269

Answers (1)

Dan Guzman
Dan Guzman

Reputation: 46203

The sql_batch_starting and sql_batch_completed events will capture an ad-hoc query. Parameterized queries can be captured with rpc_starting and rpc_completed.

Upvotes: 2

Related Questions