1
kudos
spam Kudos Remove

Column order doesn't matter... generally, but - IT DEPENDS!

published 348 days, 6 hours, 33 minutes ago posted by sasa 354 days, 23 hours, 2 minutes ago
Monday, August 17, 2009 1:25:13 PM GMT Monday, August 10, 2009 8:55:59 PM GMT

OK, for years I've been saying that SQL Server doesn't care about the order in which you define the columns of your table because internally SQL Server will re-arrange your columns to store all of the fixed width columns first and the variable columns last. In both the fixed-width portion of the row as well as the variable-width portion of the row, the columns are defined in the order in which they are declared. So, what does matter?

category: Management | clicked: 4 | | source: www.sqlskills.com | show counter code
tags: Design, SQL Server 2005, SQL Server 2008, Storage Engine

No comments yet, be the first one to post comment.

To post your comment please login or signup