I have a database that is importing information from txt files using an import macro tied to a scheduled task. This is working perfectly fine.
However, what I then need to do is run an Append query to get some of that data that is imported into another table for export. The issue I am having is that if I have the RunQuery in a macro the scheduled task (using the /x switch) does not run, it just hangs.
I had a similar issue with getting the imports to run, I resolved that by changing the imports to a pure SQL statement and it all now runs fine. What I am struggling to find is a way to run the query from a SQL statement as all the INSERT INTO information that I find seems to be wanting to move data from a table into a table rather than running a query and submitting that data into an empty table which is what I am doing here.
The reason for this is that we need the import and export of data to be run automatically without any manual intervention. We cannot do this natively within one system hence the import and export.
Help me Obi-wan Kenobi!
However, what I then need to do is run an Append query to get some of that data that is imported into another table for export. The issue I am having is that if I have the RunQuery in a macro the scheduled task (using the /x switch) does not run, it just hangs.
I had a similar issue with getting the imports to run, I resolved that by changing the imports to a pure SQL statement and it all now runs fine. What I am struggling to find is a way to run the query from a SQL statement as all the INSERT INTO information that I find seems to be wanting to move data from a table into a table rather than running a query and submitting that data into an empty table which is what I am doing here.
The reason for this is that we need the import and export of data to be run automatically without any manual intervention. We cannot do this natively within one system hence the import and export.
Help me Obi-wan Kenobi!