I have to extract a table from SQL Server to Excel on a weekly basis.
For this purpose I am required to include a specific ID for that week in the file name.
I have created my variable, and have created a stored procedure which returns a single value every time related to the specific week we are in.
However I am unsure how I can assign that value to the variable.
Any chance anyone can help me out?
p.s. I apologize in advance if this was already answered somewhere else, Google did not help me that much.



