Without an ORDER BY you cannot tell which 100 rows are returned.You can also use composable DML to update and output the result or use the OUTPUT alone.WITH cteWorkAS ( SELECT EmpCode, ConcID, eDate, eTime, Extra6, [Status] FROM dbo.TOLRecord WHERE Extra6 IS NULL)UPDATE cteWorkSET Extra6 = 'X'OUTPUT inserted.EmpCode, inserted.ConcID, inserted.eDate, inserted.eTime, inserted.Extra6, inserted.[Status];
Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA