Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » Meta Data FunctionsRSS Feeds

@@PROCID - PROCID Function

Posted By: Sarita Patel     Category: SQL Server     Views: 2492

This article explains about @@PROCID function in sql server with examples.

@@PROCID function is used to get stored procedure identifier of current procedure. 



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

Output
965578478

Above example create procedure named as  GET_PROCEDURE_ID. It returns procedure id of current procedure GET_PROCEDURE_ID.
  
Share: 


Didn't find what you were looking for? Find more on @@PROCID - PROCID Function Or get search suggestion and latest updates.

Sarita Patel
Sarita Patel author of @@PROCID - PROCID Function is from United States.
 
View All Articles

Related Articles and Code:


 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!