sql - SQL Extended Events Capture Truncate Statements
问题描述
Using Extended Events I am trying to capture TRUNCATE or SWITCH statements that are executed as part of Stored Procedure calls. I can capture when executed in SSMS as an adhoc TSQL statement using the sql_statememnt_completed event for example and filtering on sql_text using LIKE %TRUNCATE% but this does not capture the statement as part of a Stored Procedure execution.
What's the best way to capture the TRUNCATE regardless of where/how it is executed?
Thanks in advance.
解决方案
推荐阅读
- amazon-s3 - Stream 'Azure Blob Storage' file URL to Amazon S3 bucket
- database - 如何在 phpmyadmin 中将我的 id 计数器重置为 1?
- python-3.x - Keras LSTM 和嵌入连接数组维度问题
- python - 烧瓶表格未发布
- mysql - 如何从左连接返回所有空值?
- spring - Spring mvc uri路径匹配正则表达式
- excel - 需要将日期更改为当前工作周 (1-52),但如果当天是周三 - VBA 中的周六,请跳至下周
- java - What are some best practices for a creating a constructor that takes a boolean isX and depending on that value would need a boolean for isY?
- sequelize.js - aexmachina/factory-girl(节点)无法将工厂与非持久模型关联
- java - 如何在动画结束时调用 TextInputDialog?