Need to create a stored procedure to generate the excel as an output. Input will be a SQL query, normally a SELECT query. And the input query may vary each time and based on tha