Are GUID collisions possible?

Basically, no. I think someone went mucking with your database. Depending on the version GUID you’re using the value is either unique (for things like version 1 GUIDs), or both unique and unpredictable (for things like version 4 GUIDs). SQL Server’s implementation for their NEWID() function appears to use a 128-bit random number, so you’re not going to get a collision.

For a 1% chance of collision, you’d need to generate about 2,600,000,000,000,000,000 GUIDs.

Leave a Comment