Posted by: U?Me June 4, 2008
SQL Automatic incremental generator
Login in to Rate this Post:     0       ?        
Hi All:
I have a column in a table with datatype varchar(60). I need to start inserting values into this column (starting sequentially from R000001 onwards). So, the next record would be R000002, so on and so forth. I tried using NewID() function, however this generates unique hexadecimal numbers like 019D9F4F-E16C-4EDF-9E02-DF1190B7AECF

Any help is greatly appreciated
Read Full Discussion Thread for this article