To Get All the Names of tables and Databases their data have changed in last 24 Hours And Backup those databases
-- ============================================= -- Author: Muhammad Jawad -- Create date: 2/3/2017 -- Description: To Get All the Names of tables and Databases their data have changed in last 24 Hours And Backup those databases -- ============================================= Alter PROC UP_FindAndBackupAllDatabaseHaveChanges AS BEGIN ----**************************START: To get all the tables and database names whose data have changed in last 24 hours **************************---- DECLARE @loopStart INT= 1; DECLARE @looend INT; IF OBJECT_ID('tempdb..#AllDatabaseTables') IS NOT NULL BEGIN DROP TABLE #AllDatabaseTables; END; CREATE TABLE #AllDatabaseTables ( ...