Logo 
Search:

SQL Server Articles

Submit Article
Home » Articles » SQL Server » Configuration FunctionsRSS Feeds

@@SPID - SPID Function

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

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

@@SPID function returns server  process identifier of the current user process. 

Syntax of @@SPID Function :

@@SPID

Return type of @@SPID function is smallint.



Examples of @@SPID Function :

Example 1 : Use of @@SPID function in select clause

SELECT @@SPID

Output
52

Above example returns process id of current user process.
  
Share: 


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

Sarita Patel
Sarita Patel author of @@SPID - SPID 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!