Both are acceptable, and I also want to rename the sheet name (A fixed name).
what I want to do is, each time use this automate, I can get a new excel file in sharepoint.
Sum up, I want to get data from sql server and put them into an excel in sharepoint so that I can download it