Logo 
Search:

SQL Server Articles

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

IDENT_INCR Function

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

This article explains about IDENT_INCR function in sql server with examples.

IDENT_INCR function returns the indrement value of an identity column specified while creating a table or view. 


Syntax of IDENT_INCR Function :

IDENT_INCR ('table_or_view')

table_or_view is a table or view name. It can be of type char, nchar, varchar or nvarchar

Return type of IDENT_INCR function is a numeric.




Examples of IDENT_INCR Function :

Example 1 : Use of IDENT_INCR function in select clause 

SELECT IDENT_INCR ('User')

Output
1

Above example returns increment value 1 of an identity column in User table. 
  
Share: 

 
 
 

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

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