InterviewSolution
Saved Bookmarks
| 1. |
Explain the difference between Sequence vs Identity? |
|
Answer» An IDENTITY column in the table has auto-generate & auto increase value with each new row insert. The user cannot insert value in the identity column. The sequence is a new feature introduced with SQL Server 2012 similar to Oracle’s sequence objects. A sequence object generates a sequence of unique numeric VALUES as per the specifications mentioned. Next VALUE for a SEQUENCE object can be generated using the NEXT VALUE FOR clause.
|
|