Rules to use ROWGUIDCOL property to define globally unique identifier column

What are the rules to use the ROWGUIDCOL property to define a globally unique identifier column?

A table can have only one ROWGUIDCOL column
A ROWGUIDCOL column must be defined by using the uniqueidentifier data type.
To insert a globally unique value, we need to apply DEFAULT definition on the column that uses the NEWID function to generate a globally unique value.
To enforce uniqueness in ROWGUIDCOL column, the UNIQUE constraint should be used.

What are the rules to use the ROWGUIDCOL property to define a globally unique identifier column?

Only one column can exist per table that is attached with ROWGUIDCOL property. One can then use $ROWGUID instead of column name in select list.
Actions prevented once referential integrity is enforced
Following are the actions prevented once referential integrity is enforced.......
Commands available for Summarizing Data in SQL Server
Summarizing Data in SQL Server - We have CUBE or ROLLUP operators to generate summary reports. Both are part of the GROUP BY clause ......
SQL server - Difference between CUBE operator & ROLLUP operator.
CUBE operator and ROLLUP operator - CUBE generates a result set that represents aggregates for all combinations of values in the selected columns........
Post your comment