i have a requirement of executing the query at one point of time by scheduling it and then sending the executed results into excel and send the same as attachment by email to some users.
steps.
1.Schedule a task to execute the query.
2.Executed rows to be converted into excel
3.Send excel file to users.