Logo 
Search:

SQL Server Articles

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

IDENT_SEED Function

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

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

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


Syntax of IDENT_SEED Function :

IDENT_SEED ('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_SEED function is a numeric.




Examples of IDENT_SEED Function :

Example 1 : Use of IDENT_SEED function in select clause 

SELECT IDENT_SEED ('User')

Output
1

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


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

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