1
There is a way to find out via query which table in a database has changed from Update or Insert?
1
There is a way to find out via query which table in a database has changed from Update or Insert?
0
By checking the SQL SERVE forums, this query will return the value of the last Insert:
SELECT o.name as ObjectName, last_user_update,*
FROM sys.dm_db_index_usage_stats s
join sepm01.sys.objects o on s.object_id = o.object_id
WHERE database_id = DB_ID( 'sepm01')
Also I found a component that will give you a more precise mtrack on this: SQL Server - Change Tracking
Browser other questions tagged sql database sql-server microsoft
You are not signed in. Login or sign up in order to post.
Your question is not clear. Explain the problem so we can propose a solution.
– Sorack
There are Triggers (Triggers)
– Gustavo Fragoso
https://docs.microsoft.com/pt-br/sql/relational-databases/security/auditing/sql-server-audit-database-engine
– Motta