View Issue Details

This issue affects 1 person(s).
 2
IDProjectCategoryView StatusLast Update
05961Bug reportsSurvey editingpublic2012-03-29 13:09
ReporterMPIDR Assigned Toc_schmitz  
PrioritynormalSeveritypartial_block 
Status closedResolutionwon't fix 
Product Version1.92+ 
Summary05961: SQL Server CREATE TABLE failed because column in table exceeds the maximum of 1024 columns.
Description

I have a large survey that cannot get activated because of a column limit in the SQL database. This is the beginnig of the error message I get.

Survey could not be activated.
Database error: SQLState: 42000 Error Code: 1702 Message: [Microsoft][SQL Server Native Client 11.0][SQL Server]CREATE TABLE failed because column '81644X939X10751' in table 'lime_survey_81644' exceeds the maximum of 1024 columns.

id I NOTNULL AUTO PRIMARY,
submitdate T,
lastpage I,
startlanguage C(20) NOTNULL,
token C(36),
81644X794X9222 C(5),
81644X794X9203 C(5),
81644X794X9182 F,
81644X794X9183 C(1),
81644X794X9184 C(5),
81644X794X9185 C(5),
81644X794X9186 C(5),
81644X794X91871 F,

Additional Information

http://connect.microsoft.com/SQLServer/feedback/details/356932/cannot-add-more-than-1024-sparse-columns-to-user-table

The creation of more than 1024 columns in a table requires the use of a column_set column. Without a column_set the limit is 1024 columns total. With a column_set, the limits are 1024 non-sparse columns (including the column_set and computed columns) and 30,000 columns total. These limits are mentioned in the CREATE TABLE topic in Books Online, but the column_set portion appears to be missing.

If you change the prefix in your dynamically built CREATE like this, it should allow the table creation to work properly:
SET @SQL = 'CREATE TABLE MaxSparseColumnTest (cs xml column_set for all_sparse_columns, '

TagsNo tags attached.
Bug heat2
Complete LimeSurvey version number (& build)120314
I will donate to the project if issue is resolvedNo
BrowserInternet Explorer
Database type & versionMS SQL Server 2005
Server OS (if known)MS Windows 2008 R2
Webserver software & version (if known)IIS 7.5
PHP Version5.3.8
Git branch / Pull Request URL

Users monitoring this issue

There are no users monitoring this issue.

Activities

c_schmitz

c_schmitz

2012-03-29 13:09

administrator   ~18118

That's not a bug but a known limitation. Sorry.

Issue History

Date Modified Username Field Change
2012-03-29 10:33 MPIDR New Issue
2012-03-29 13:09 c_schmitz Note Added: 18118
2012-03-29 13:09 c_schmitz Status new => closed
2012-03-29 13:09 c_schmitz Assigned To => c_schmitz
2012-03-29 13:09 c_schmitz Resolution open => won't fix
2019-11-01 17:25 c_schmitz Category Survey design => Survey editing