In this post, I provide you one script to find who last performed DDL changes in SQL Server.
As a DBA, this script is very useful to monitor last DDL changes in SQL Server.
Below is a script:
te.name AS eventtype
SELECT TOP 1
WHERE property = 2
INNER JOIN sys.trace_events as te
ON t.eventclass = te.trace_event_id
In above script, sys.fn_trace_getinfo(NULL) will fetch default trace file.
Please share your ideas and opinions about this topic with me, your contribution will add true value to this topic.
If anyone has doubts on this topic then please do let me know by leaving comments or send me an email.
If you like this post, then please share it with others.
Please follow dbrnd.com, I will share my experience towards the success of Database Research and Development Activity.
I put up a post every day, please keep reading and learning.
Discover Yourself, Happy Blogging !
Anvesh M. Patel.