When would you use GUIDs as primary keys? [duplicate]
问题 This question already has answers here : Closed 10 years ago . Possible Duplicate: Advantages and disadvantages of GUID / UUID database keys Are there any circumstances where it is essential to use GUIDs as primary keys in a SQL Server 2005/8 DB. For example, does the use of the MS Sync Framework force this, or data replication? 回答1: You would use guids as a key if you needed multiple databases synchronising via replication. Another reason to use guids is if you wanted to create rows on some