Performance / Space implications when ordering SQL Server columns?

后端 未结 1 1701
自闭症患者
自闭症患者 2020-11-30 14:57

Are there any considerations that should be taken into account when designing a new table with regards to the order in which columns should be declared? I tend to put the pr

相关标签:
1条回答
  • 2020-11-30 15:08

    SQL Server stores the data on disk in set and fixed fashion.

    The order in sys.columns and key columns has no relevance to this on-disk order.

    See "Anatomy of a record" (Paul Randal) and my answer here: How do you get to limits of 8060 bytes per row and 8000 per (varchar, nvarchar) value?

    0 讨论(0)
提交回复
热议问题