SQLSetStmtAttr(hstmt,SQL_ATTR_ROW_BIND_TYPE,SQL_BIND_BY_COLUMN,0); SQLSetStmtAttr(hstmt,SQL_ATTR_ROW_ARRAY_SIZE ,SQLPOINTER(nRows2Read) ,SQL_IS_INTEGER ); nRows2Read=4; SQLCHAR sBuffer[nRows2Read+1][50]; SQLINTEGER sBuffer_ind[nRows2Read+1]; cliRC =…