Home > SQL Server, T-SQL > SQL SERVER – IDENT_SEED() – Identity Column @SQLSERVER

SQL SERVER – IDENT_SEED() – Identity Column @SQLSERVER


IDENT_SEED() : This function returns the original seed value that is defined while the table was created or altered. This function needs a table name as an argument. It returns a numeric value as an output of size numeric(38,0).  It may return null value if the user does not have permission to access the object.

Note: DBCC CHECKIDENT() changes will not take effect by IDENT_SEED() function.

Function Syntax

IDENT_SEED ( ‘table or view name’ )

Example

1. Print the current identity seed value.

SQL Query

pic1

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: