I'm looking to update a column in a table from a null state to a unique ID which would represent the row being locked. Is there a simple means of doing this?
Thanks
Edit for clarification: This is pretty much what i'm looking for. After thinking about it for a while i'm pretty much of the opinion it should just be broken off into a separate table and referenced via a foreign key.
Pk | column | uniqueId
1 | useless | <DBNULL>
2 | random | <DBNull>
--Update occurs
1 | useless2| 1
2 | random | <DBNULL>
--Update occurs
1 | useless3| 2
2 | random | <DBNULL>
--update occurs
1 | useless3| 2
2 | random2 | 3