I was wondering how sql server sorts it\'s data. I noticed that if I have a table that doesn\'t contain the column \"Id\" and you select data without \"ORDER BY\" sql server
I had a similar experience with SQL Server returning results sorted differently than I expected. I found that if you specify a table hint in the select statement, giving the name of the clustered index, you get the results ordered how you want:
select * from test_order WITH (INDEX([ClusteredIndexName]))