Quantcast
Channel: SQL Server Database Engine forum
Viewing all articles
Browse latest Browse all 12963

Extended Events: How to capture DML on a specific table

$
0
0

I want to capture Select/Insert/Update/Delete commands on a specific table, lets say - dbo.MyTbl.
I can use extended events to analyze the completed TSQL commands in order to find dbo.MyTbl or [dbo].[MyTbl] (I assume the schema is always mentioned explicitly). The problem is that the table could be accessed through a view, and it won't be mentioned explicitly in the TSQL command.

Is there a way to solve this problem through Extended Events, or a better solution for such a problem?


El castellano no es mi lengua materna. Discúlpenme por los errores gramaticales, y, si pueden, corríjanme en los comentarios, o por correo electrónico. ¡Muchas gracias! Blog: http://about.me/GeriReshef


Viewing all articles
Browse latest Browse all 12963

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>