简体   繁体   中英

SQL Server database mirroring and primary key

"It is better to use UNIQUEIDENTIFIER type in tables when you use database mirroring" - is it myth?

What may be a reason to use unique primary key for mirroring purpose (single database mirroring case)?

No reason at all.

In mirroring only one database is in-use so there are no collision issues.

Is someone confusing this with replication where several sites are in-use and synch to each other? uniqueidentifier has a use here (and is mandatory in some cases) but still not as clustered index. And you use NOT FOR REPLICATION clauses on triggers and IDENTITY etc

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM