Wednesday, April 10, 2013

Generate Row number


This method will only work when you do "select into from "

Syntax is :
select identity(int,1,1) as RowNumber, *
into newtable
from oldtable

No comments: