Example of create table Query with database replication turn on ROWGUIDCOL
--------------------------------------------------------------------------
create table TableA (
TableAID int identity not null,
Name nvarchar(50) not null,
rowguid uniqueidentifier *ROWGUIDCOL* default (newid()) not null unique, <--- need this to be added to every physical table (as shown)
ModifiedDate datetime default (getdate()) not null, <--- need this to be added to every physical table (as shown)
TableBID int null, constraint PK_TableA primary key (TableAID));
Open in new window