NEWSEQUENTIALID
NEWSEQUENTIALID is a Transact-SQL function in Microsoft SQL Server that generates a unique identifier (GUID) that is guaranteed to be sequential. This sequential nature makes it more efficient for SQL Server to store and retrieve data when used as a primary key or clustered index compared to the non-sequential GUID generated by the NEWID function. When NEWSEQUENTIALID is used for a primary key in a clustered index, it can help reduce page splits and improve insert performance, especially in scenarios with high insert volumes.
The function returns a uniqueidentifier data type. While it generates sequential values, it's important to note