I'm used to working with Oracle and am just recently being exposed to sql server.
I'm currently cleaning up an existing table that doesnt have a good primary key. In oracle I would have used something like "update mytable set new_id=1000+rownum"
to load the table with a unique col to use as a primary key. Can anybody point in in the right direction to accomplish this with t-sql?
I'm currently cleaning up an existing table that doesnt have a good primary key. In oracle I would have used something like "update mytable set new_id=1000+rownum"
to load the table with a unique col to use as a primary key. Can anybody point in in the right direction to accomplish this with t-sql?