SQL Server Advanced
Sometimes you have a series of stored procedures that themselves are managed by another master stored procedure like so. This usually just means a series of EXEC statements after each other. It is quite handy to create a login event after each stored procedure call in order to check its progress.
Logging with try-catch CREATE PROCEDURE loging AS BEGIN DECLARE @LogText nvarchar(max) EXEC Staging.SpVV_logIns 'procedure_name_to_log', 'START', null, 'I' BEGIN TRY begin tran --sql code commit EXEC Staging.