BobLoblaws
Programmer
I am running SQL Server 7.0. I am looking for a way to output a query to a file. The filename needs to be dynamic. The logic should work like follows.
Stored procedure is passed a date stored in @inDate.
SELECT * INTO FILE "c:\" + @inDate + ".txt" FROM tblHistory WHERE Date= @inDate.
I would like it to dump all information on that date into a file named the date. ie. 2003-02-12.txt
Any suggestions?
Thanks,
Stored procedure is passed a date stored in @inDate.
SELECT * INTO FILE "c:\" + @inDate + ".txt" FROM tblHistory WHERE Date= @inDate.
I would like it to dump all information on that date into a file named the date. ie. 2003-02-12.txt
Any suggestions?
Thanks,