I need to export SQL Server result to excel file (at least a million rows and minimum 50 columns)
constraints:
- We can't use Inter-op
- Data should be in only one-sheet
- The process should not use more than 5GB ram (Time consumption up to 45 min)
- Excel file processing library should be free
- We don't want to create a CSV file
Below are the methods I have already tried:
- OpenXML (Out of memory exception and if try to write in a small amount of data using a lot of Ram)
- ClosedXML (It is using too much of ram)
- EPPlus (It is using too much of ram)
How can I do this?