Syntax of @@PROCID Function :
@@PROCID
Return type of @@PROCID function is an integer.
Examples of @@PROCID Function :
Example 1 : Use of @@PROCID function in select clause
CREATE PROCEDURE GET_PROCEDURE_ID
AS
BEGIN
SELECT @@PROCID
END
EXEC GET_PROCEDURE_ID