The SQL_GetData() function returns the data in the specified column in the current row of the current results set for the specified pass-through SQL connection.
SQL_GetData(SQL_connection, column, data)
• SQL_connection – A long integer specifying the pass-through SQL connection to use.
• column – A long integer specifying the column in the current results set from which data will be returned. The value 1 indicates the first column.
• data – The data returned. The storage type of this variable or field must be compatible with the value returned. When possible, the value returned will be converted to the storage type of the variable or field.
A long integer indicating the status of the retrieval operation. The value 0 indicates data was successfully retrieved. Any other value indicates an error occurred.