Work around SQL Server maximum columns limit 1024 and 8kb record size

前端 未结 7 1175
北海茫月
北海茫月 2020-12-01 05:46

I am creating a table with 1000 columns. Most of the columns are nvarchar type. Table is created, but with a warning

Warning: The t

7条回答
  •  心在旅途
    2020-12-01 06:08

    We had application which captures 5000 fields for a loan application. All fields are dependent on a single primary key loanid. We could have split the table into multiples but the fields are also dynamic. The admin also has a feature to create more fields. So everything is dynamic. They only good thing was a one to one relationship between loanid and fields.

    So, in the end we went with XML solution. The entire data is store in an xml document. Maximum flexibility but makes it diffifcult to query and report of.

提交回复
热议问题