I want to update my column CODE_DEST with an incremental number. I have:
CODE_DEST RS_NOM null qsdf null sdfqsdfqsdf null qsdfqsdf >
If table does not have relation, just copy all in new table with row number and remove old and rename new one with old one.
Select RowNum = ROW_NUMBER() OVER(ORDER BY(SELECT NULL)) , * INTO cdm.dbo.SALES2018 from ( select * from SALE2018) as SalesSource