How many columns are too many for a SQL Server 2005 table?

后端 未结 10 2268
渐次进展
渐次进展 2020-12-31 10:39

I have a request to allow a dynamic table to have 1000 columns(randomly selected by my end users). This seems like a bad idea to me. It\'s a customizable table so it will

10条回答
  •  庸人自扰
    2020-12-31 10:59

    As a rule: the wider the table the slower the performance. Many thin tables are preferable to one fat mess of a table.

    If your table is that wide it's almost certainly a design issue. There's no real rule on how many is preferable, I've never really come across tables with more than 20 columns in the real world. Just group by relation. It's a RDBMS after all.

提交回复
热议问题