This may not be possible, but at present I run many SQL queries each week (as a tactical reporting solution) and output the results to a tilde-delimited file.
In all cases the output file is named the same as the SQL file plus the weekending date, which is a variable within the SQL.
Is there anyway to use these to prompt the file name?
For example, one SQL script is called:
OrdersWE.sql and in it is a variable called @RPTDATE which for today's reports = '20090117'.
I therefore want the output to be called OrdersWE20090117.rpt
Is this at all possible?
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen
In all cases the output file is named the same as the SQL file plus the weekending date, which is a variable within the SQL.
Is there anyway to use these to prompt the file name?
For example, one SQL script is called:
OrdersWE.sql and in it is a variable called @RPTDATE which for today's reports = '20090117'.
I therefore want the output to be called OrdersWE20090117.rpt
Is this at all possible?
Fee
"The cure for anything is salt water – sweat, tears, or the sea." Isak Dinesen