If you ever need to generate guaranteed unique ID’s, unique even across multiple servers, look no further than CFML’s own CreateUUID() function. This function returns a string representation of a 128 byte integer that is guaranteed to be unique. You can use this string anywhere that a unique ID is needed, including database primary keys. (Applies to: ColdFusion 4.5 (or later))
Leave a Reply