I have to insert a fake column at the result of a query, which is the return value of a table-value function. This column data type must be unique-identifier. The best way (
You could use ROW_NUMBER function:
SELECT (ROW_NUMBER() OVER (ORDER BY recordID) ) as RowNumber , recordID, fieldBla1 FROM tableName
Find more information at http://msdn.microsoft.com/pt-br/library/ms186734.aspx