Which activity are you using? The ‘Execute query’ activity is used to execute select statements in the database and retrieve the results in a datatable.
If you donot see the ‘Execute query’ activity in your activities pane, please go to packages and install the Databases package.
I used Execute query and yes I tried to retrieve the results in dataTable, yet it does not work, I get nullReferenceException because the query does not execute and the data table is empty
I am trying to extract data from Access using ODBC connection. Select query syntax in EXECUTE command does not work. Please share sample workable syntax. it will be helpful.
Hi,
Check if the connection is still open, or somewhere on the line you closed the connection, for me that was the issue .
Hope this may help you ! ( also if the connection is not open then the query won’t work)