ABS
ALL
AND
ANY
AVG
bit
COS
COT
DAY
EXP
GO
IN
LEN
LOG
MAX
MIN
NOT
OR
PI
SET
SIN
STR
SUM
TAN
USE
VAR
Expand Minimize
1 out of 2 rated this helpful - Rate this topic

@@PROCID

SQL Server 2000

Returns the stored procedure identifier (ID) of the current procedure.

Syntax

@@PROCID

Return Types

integer

Examples

This example creates a procedure that uses SELECT to display the @@PROCID setting from inside the procedure.

CREATE PROCEDURE testprocedure AS
SELECT @@PROCID AS 'ProcID'
GO
EXEC testprocedure
GO

See Also

CREATE PROCEDURE

Metadata Functions

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.