I found a lot examples about this one but I still don't have it all working.
So the thing is that I have a button in my C# web application called Export to Excel. The functionality should works as if the button is clicked - it just simply executes SQL command for exporting a table from database to xlsx file.
(maybe something like
SELECT * INTO OUTFILE "D:/table.xlsx" FIELDS TERMINATED BY ',' FROM table;
Thanks a lot in advance