If you select SQL command from variable, and that variable is empty, then I get errors. So, it seems you still need some initial statement in your variable that will be used, correct? This seems right, now that I think about it - because the
mapping needs to list the columns etc.
So my questions are:
(1) With either data access mode - SQL command -or- SQL command form variable, you still need to have a valid sql statement, and if you want to have correct column mapping, then the statement needs to include the columns you want to use, not simply bogus sql, correct?
(2) So how does it work when a stored procedure call is used? does it infer the columns being selected in the procedure?