Are you comfortable with dynamic SQL? If so:1. build a list of the six columns in a random order2. build a sql query using the list3. execute the querye.g.CREATE TABLE #t(a int, b int, c int)-- build a list of columns in random orderDECLARE @collist NVARCHAR(4000) = stuff( ( SELECT ',' + quotename(nm) FROM (VALUES ('a'),('b'),('c')) v(nm) ORDER BY NEWID() FOR XML PATH('') ) , 1,1,'')-- build the queryDECLARE @sql nvarchar(4000) = 'select ' + @collist + 'from #t'-- execute the queryEXEC (@sql)