How Questionnaire Responses are Stored
Questionnaires (Legacy)
How Questionnaire Responses are Stored
Each table with existing questionnaire capability contains a questionnaire response field. This is a memo field with field name typically ending in "_quest". When the questionnaire input is saved, the question names and their answers are stored in XML format and written to the questionnaire response field. This could look something like the following:
<questionnaire questionnaire_id=”New Hire” >
<question quest_name=name_plate value=”Yes” />
<question quest_name=jack_type value=”Fiber” />
</questionnaire>
Note that more than one questionnaire may be stored in one particular storage field. In this way, a single type of inventory record (for example, Move Orders) can have different questionnaires for different Move Order Types(for example, a New Hire, Equipment Move, and Asset Move can have different questions). However, within one single record, the results for one single questionnaire are stored.
Storage Requirements
The number of questions you have is limited only by the available storage space in the memo (varchar) field used to hold the question results. For Sybase ASA this is 32K bytes; for Microsoft SQL 2000 and older, varchar fields are limited by the total record size of 8K bytes and thus will be affected by the other fields in the table; Oracle’s limit for memo fields is 4K bytes although there can be many 4K fields in an Oracle table.
Thus, if a typical question id is 5 characters, a typical response is 30 characters, and the xml tags per question average 65 characters, then rough limits to the number of questions are:
Database Server |
Limits for this Example |
Sybase ASA |
32k/100 = 327 |
Oracle: |
4k/100 = 40 |
MS SQL Server |
4k/100 = 40 (8k record size limit; 4k for rest of record) |