How does SQL Server determine the order of the columns when you do a `SELECT *`?
How does SQL Server determine the order of the columns when you do a SELECT * ? I know "Order By" is essential for ordering the data , but I expected the column names to be consistent. Note: My code is not dependent on the actual order the columns are returned. I just want to know how SQL Server decides to order the column names. Of about 20 computers my team is using, one of them behaves differently. Any difference deserves to be investigated. The column name ordering appears to be the same for all computers when we open SQL Server Management Studio. When our application makes a query is when