Skip to main content
Prasanth_Kumar_S
Inspiring
August 21, 2009
Question

ColdFusion UUID and MS SQL Server UUID

  • August 21, 2009
  • 1 reply
  • 1372 views

     I was trying to manage data in a table that contains UUID as primary key. While inserting data from CF, I am checking whether the <cfargument type="UUID" ... . This showed datatype error and a bit googling told me that the representation of UUID in CF and MS SQL server are different, so we need to insert/remove one (- 'hyphen') from the UUID before using it in SQL/CF.

   I created a conversion function and is working fine.

     Is this a good method? I needed a uniqueID as primary key (No. the int will not do as I need to pass the ID through URL). What should we do in this situation? Can any other data type be used ?

- Prasanth

    This topic has been closed for replies.

    1 reply

    Prasanth_Kumar_S
    Inspiring
    August 21, 2009

    Well,

       It seems most are following the same method as I do.

    -Prasanth