Unique in what context? Unique at the transaction level, table level or
globally (outside the server)?
There are several options, but if this data is to inserted into a table,
then you will want to consider the storage requirements of the values. A
GUID (ex: 6F9619FF-8B86-D011-B42D-00C04FC964FF) is 32 bytes in alpha-numeric
format and would still require a (8 byte) Big Int if converted to numeric.
If you just need a unique numeric value inserted into a table column, then
an auto incremented integer would be the logical choice.
"David Pope" <dp***@nospam.satx.rr.com> wrote in message
news:O8**************@TK2MSFTNGP09.phx.gbl...
I need to create a unique number like a GUID but all numbers.
Does anyone know of algorithm to do this?
Thanks,
David