Here's the solution for Oracle. It's a different algorithm than that used in CF but hopefully it will still be unique to a reasonable level of certainty.
CREATE OR REPLACE FUNCTION GetCFUUID RETURN VARCHAR IS tmpVar VARCHAR (32); GetCFUUIDRet VARCHAR(35); BEGIN tmpVar := SYS_GUID(); GetCFUUIDRet := SUBSTR(tmpVar,1,8)||'-'||SUBSTR(tmpVar,9,4)||'-'||SUBSTR(tmpVar,13,4)||'-'|| SUBSTR(tmpVar,17,16); RETURN GetCFUUIDRet; END GetCFUUID; -----Original Message----- From: James Holmes Sent: Thursday, 10 March 2005 8:40 To: CF-Talk Subject: RE: UUID creation outside CF I want a UUID that will work in CF when selected, so I need to write a wrapper function around NewID() or SYS_GUID() as I previously discussed (to change the hyphenation). This is a simple task. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Logware (www.logware.us): a new and convenient web-based time tracking application. Start tracking and documenting hours spent on a project or with a client with Logware today. Try it for free with a 15 day trial account. http://www.houseoffusion.com/banners/view.cfm?bannerid=67 Message: http://www.houseoffusion.com/lists.cfm/link=i:4:198375 Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4 Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4 Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4 Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

