It worked for me rightdeclare @t table (InstId int, Date datetime, Readings int)set dateformat dmyinsert @tselect 1, '10/12/2008', 10 union allselect 1, '11/12/2008', 10 union allselect 1, '12/12/2008', 10 union allselect 1, '13/12/2008', 9 union allselect 1, '14/12/2008', 10 union allselect 1, '15/12/2008', 10 union allselect 1, '16/12/2008', 10 union allselect 1, '17/12/2008', 10 union allselect 2, '05/03/2008', 8 union allselect 2, '06/03/2008', 6 union allselect 2, '07/03/2008', 8 union allselect 2, '08/03/2008', 8 union allselect 2, '09/03/2008', 8 union allselect 2, '20/03/2008', 8SELECT ReadingsINTO tblTargetFROM @t s;ALTER TABLE tblTargetADD Rec_Num int IDENTITY;SELECT * FROM tblTarget; --this returns Value & Rec_Num, no problemCREATE UNIQUE INDEX IX_tblTarget_Rec_Num ON tblTarget(Rec_Num);--This works fine as well--However...SELECT * FROM tblTarget ORDER BY Rec_Num;SELECT Rec_Num FROM tblTargetdrop table tblTarget