SQL Clone
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

Script To Show Which Tables Are Changed

By Evgeny G. Shymshyt,

The following T-SQL query batch will show you which tables was changed since last execute.
Tracking information: (1) changes row count /insert,update,delete/; (2) changes IDENTITY value; (3) changes physical allocations /used pages/; (4) added new tables; (5) dropped tables.
The batch must be initialized before using (at least once executed).
I use this batch to recognize which tables are changed through using an interface of application.

Total article views: 650 | Views in the last 30 days: 5
Related Articles

SQL Server || Change Batch separator

SQL Server utilities interpret GO as a keyword to separate the batch. GO is not a Transact-SQL state...


Batch file

Batch file -- running sql files as a batch


DOS Batch File Date and Time

Written by David POstlethwaite A non SQL blog for a change   Ever needed to create a batch file t...


Modify columns' name in batches

Modify columns' name in batches.


Miant Plan -batch file execution

Miant Plan -batch file execution