Click here to monitor SSC
SQLServerCentral is supported by Redgate
Log in  ::  Register  ::  Not logged in

Get your favorite SSC scripts directly in SSMS with the free SQL Scripts addin. Search for scripts directly from SSMS, and instantly access any saved scripts in your SSC briefcase from the favorites tab.
Download now (direct download link)

New feature in SQL Server 2012 - Sequence

By Kash Mughal,

Sequence feature which has been in Oracle for a number of years is now available in MS SQL 2012! A Sequence object is an object that provides functionality similar to Identity (Autonumber) column. The sequence object can be used with more than one table which is not possible in identity object. This is useful when you have parent-child tables and you want to know the value of the ID column before you insert records. We are including some examples here that you can use with SQL Server 2012.

Total article views: 2006 | Views in the last 30 days: 0
Related Articles

Denali — Day 10: Sequence object

Denali – Day 10: Sequence object Sequence is an object introduced in Denali, this is similar to...


Sequence of Database Objects Dependency - SQL 2005

Sequence of Database Objects Dependency - SQL 2005


How to handle parallel objects sequence after conditional split for two different case

Conditional split and following parallel object sequence


The Sequence Object in SQL Server 2012

The Sequence Object is one of the many exciting new features introduced in SQL Server 2012. Learn wh...


Gap sequence of column_id

select * from sys.columns where object_id=object_id('table') returns gap in sequence of column_id

new feature    
sql server 2012