3.3.5.8.1 Algorithm for Parsing Data in an rdsCreateRecordsetRequest

  1. Create an empty ordered list corresponding to the columns of the requested recordset. Each item in the list holds four attributes of a recordset column: name, data type indicator, size, and a "nullable" flag. The list will have rdsFieldShapeArrayCount elements at the completion of this algorithm.

  2. For each rdsFieldShape in the rdsFieldShapeArray, process as follows:

    1. The rdsFieldName becomes the name of the new column.

    2. The VTDataType of the rdsFieldDBTYPEVariant becomes the data type indicator of the new column.

    3. The rdsFieldColumnSizeUSHORT or rdsFieldColumnSizeULONG becomes the column size of the new column.

    4. The rdsFieldNullable becomes the "nullable" flag of the new column. For more information, see section 3.1.1.2.4.

    5. Create a list item with the four values identified in the four previous steps, and add it to the back of the list.