I am trying to insert data from excel to MS Access table. But I keep getting this error. I get the same error when I tried with Execute Query activity as well. Could someone please let me know what I am missing? Please note that the space in column names cannot be avoided.
Execute Non Query: The Microsoft Access database engine cannot find the input table or query ‘DT’. Make sure it exists and that its name is spelled correctly.
Source excel:
Insert query in Execute Non Query:
“INSERT INTO [TestTable] ( FName,Place,[Start DT])
SELECT FName,Place,[Start DT] FROM DT”
If you have your data in a datatable and want to write it to an external database, use the Bulk Insert activity.
You’re trying to do “from DT” thinking it pulls the data from your DT datatable variable, but it doesn’t. Access doesn’t know about your datatable variable. It’s trying to pull the data from a table named DT *within the Access database * - and since no such table exists it’s erroring out.