CREATE PROCEDURE dbo.TESTAS DECLARE @ProcName sysname SET @ProcName= OBJECT_NAME(@@PROCID) Print @ProcNameGO