Reading from an Excel spreadsheet is much faster using a SQL connection and I'm successfully using this to pull my excel data into a new datasheet in my flow.
I would like to do the same thing in reverse, instead of reading from an Excel sheet, I want to write from a DataTable to Excel. I've tried a few variations of the following but it keeps failing with the error "Error in SQL statement Syntax error in FROM clause". I don't know if this is just not possible, or if I'm just not using the correct syntax.
INSERT INTO [Trimmed$] ([Date_and_Time],[Zip_Code],[Brand],[Station_ID],[Adress],[Price],[Reported_by],[Age],[Time_Reported])
SELECT [Date_and_Time],[Zip_Code],[Brand],[Station_ID],[Adress],[Price],[Reported_by],[Age],[Time_Reported]
FROM %Excel_Write%
INSERT INTO [Trimmed$] (Date_and_Time,Zip_Code,Brand,Station_ID,Adress,Price,Reported_by,Age,Time_Reported)
SELECT *
FROM %Excel_Write%
INSERT INTO [Trimmed$] (Date_and_Time, Zip_Code, Brand, Station_ID, Adress, Price, Reported_by, Age, Time_Reported)
SELECT Date_and_Time, Zip_Code, Brand, Station_ID, Adress, Price, Reported_by, Age, Time_Reported
FROM %Excel_Write%