Change Weight and UpperBarrier to default values, since C++ SQLFetch ignores NULL fields and just fills the next available buffer!...so the buffers you assign to columns are only filled by nonNULL columns