Should I use an inline varchar(max) column or store it in a separate table?

后端 未结 6 1660
[愿得一人]
[愿得一人] 2020-12-02 23:43

I want to create a table in MS SQL Server 2005 to record details of certain system operations. As you can see from the table design below, every column apart from Deta

6条回答
  •  广开言路
    2020-12-03 00:32

    Having a nullable column costs 2 bytes for every 16 of them. If this is the only (or 17th, or 33nd, etc) nullable column in the table, it will cost you 2 bytes per row, otherwise nothing.

提交回复
热议问题