Use the Result Set page of the Execute SQL Task Editor dialog to map the result of the SQL statement to new or existing variables. The options in this dialog box are disabled if ResultSet on the General page is set to None.
After you have added a result set mapping set by clicking Add, provide a name for the result. Depending on the result set type, you must use specific result names.
If the result set type is Single row, you can use either the name of a column returned by the query or the number that represents the position of a column in the column list of a column returned by the query.
If the result set type is Full result set or XML, you must use 0 as the result set name.