Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
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: 642 | Views in the last 30 days: 6
 
Related Articles
BLOG

SQL Server || Change Batch separator

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

FORUM

Batch file

Batch file -- running sql files as a batch

BLOG

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...

SCRIPT

Modify columns' name in batches

Modify columns' name in batches.

FORUM

Miant Plan -batch file execution

Miant Plan -batch file execution

Tags
 
Contribute

Join the most active online SQL Server Community

SQL knowledge, delivered daily, free:

Email address:  

You make SSC a better place

As a member of SQLServerCentral, you get free access to loads of fresh content: thousands of articles and SQL scripts, a library of free eBooks, a weekly database news roundup, a great Q & A platform… And it’s our huge, buzzing community of SQL Server Professionals that makes it such a success.

Join us!

Steve Jones
Editor, SQLServerCentral.com

Already a member? Jump in:

Email address:   Password:   Remember me: Forgotten your password?
Steve Jones