let’s say I have 10 tables and I need to write a simple LOG entry that states how many records each tables has.
Something like
Declare @msg Varchar(MAX)
Set @msg = 'Process Succeeded; Table1 has xx record, Table2 has zz records, Table3 has ww records ...'
Insert INTO LOG (msg) VALUES (@msg)
Or roll it up into: