I want to add a column to an existing legacy database and write a procedure by which I can assign each record a different value. Something like ad
This will depend on the database but for SQL Server, this could be achieved as follows:
alter table Example add NewColumn int identity(1,1)