Current executing procedure name December 28, 2022 by Tarik You may try this: SELECT OBJECT_NAME(@@PROCID) Update: This command is still valid on SQL Server 2016.