Let's say I have a database with N tables (30-50) with different data. All tables have column "CreatedDate"
So, I want to select last 100 records from database based on this date for all tables for log/audit purposes.
One way is to do union all
on all tables manually. Or use stored procedure along with sys.tables
But I thought there's a better way to see a convenient list of all records inserted in sql server.
Maybe there's a built-in or 3rd party tool for it as well.