Greetings to all.
I have a process which extracts information from an excel file and stores it in a datatable.
The detail is that I need a way in which I can store everything that is in that datatable in a table that I have from sql server.
I tried using sql (query) statements, but they have not given me results:
INSERT INTO [Table_name]
SELECT * FROM %ExcelData%
INSERT INTO [Table_name]
SELECT (%ExcelData%)
At the moment the only solution I have had is to use a 'foreach' loop and iterate between each record and perform an `INSERT INTO (A,B,C,D) VALUES (...)`, but the problem is that they are too many records and takes a long time to process them.
I also tried using `Bulk Insert`, but the SQL server is somewhere else than where I run Power Automate and I have no way to link to it.
I hope you can help me with my case, I would appreciate it a lot.