Even after the below configuration , im not able to assign a query result to a variable
Asked
Active
Viewed 143 times
-1

Hadi
- 36,233
- 13
- 65
- 124

NAGARAJA H I
- 149
- 3
- 11
-
Read the [Tour page](https://www.stackoverflow.com/tour) – Hadi Feb 08 '19 at 12:04
1 Answers
0
In the first form you have specified the ResultSet
type as single row, and in the SQL Command you have wrote a SELECT query that may returns multiple rows.
You have to change the SQL Command, and add a TOP 1
keyword
SELECT TOP 1 ... FROM ... WHERE ...
Also if it still not working, in the Result Set Yab, try replacing the columns names with relevant indexes.
MailAddressFrom >> 0
MailAddressTo >> 1
Subject >> 2
If you are looking to store all rows returned by a SELECT Query, you should select FullResultSet
option and store the result inside an Object variable:

Hadi
- 36,233
- 13
- 65
- 124