Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 unique id

Author  Topic 

kifeda
Posting Yak Master

136 Posts

Posted - 2007-01-31 : 17:52:55
I am using the sql function unique id ( create a new default call it newid and then give it the value newid() ) The problem is I'm trying to automatically populate that uniqueid field with the random 36 bit character. if I create a new record it will create the 36bit character, but how do I add the 36bit character to an existing table?

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-01-31 : 20:11:05
[code]
update t
set col = newid()
from table t
[/code]


KH

Go to Top of Page
   

- Advertisement -