Created
December 26, 2015 03:33
-
-
Save arman-hpp/b2db34932ce288849aea to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
USE [Valieasr_336_17] | |
GO | |
WITH RowNumbers AS | |
( | |
select *, | |
RowNum = 10000000 + row_number() OVER ( order by Id ) | |
from [Person].[Persons] | |
) | |
UPDATE RowNumbers | |
SET [PersonNo] = RowNum | |
GO |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment