Buffers

An application passes data to the driver in an input buffer. The driver returns data to the application in an output buffer.

The application must allocate memory for both input and output buffers. If the application uses the buffer to retrieve string data, the buffer must contain space for the null termination byte.

Some functions accept pointers to buffers that are used later by other functions. The application must ensure that these pointers remain valid until all applicable functions have used them. For example, the argument rgbValue in SQLBindCol points to an output buffer where SQLFetch returns the data for a column.