Hi,
I have an issue with the passing the filename to the proc that extract data. Here is my proc
*****************************************************************************************************************
alter proc extractFOData
(@startdate integer,
@endDate integer,
@archiveFileName varchar(255))
begin
select getDate();
set temporary option TEMP_EXTRACT_NULL_AS_EMPTY='ON';
set temporary option TEMP_EXTRACT_COLUMN_DELIMITER=':|:';
set temporary option TEMP_EXTRACT_NAME1=@archiveFileName;
select * from FOrder2012 where tradedateid between @startdate and @enddate;
select getDate();
end
******************************************************************************
However, if I pass '/dump/abc' I cannot find the output file under /dump
If I hard code in the proc with the file name '/dump/abc', I will see the file out without any problem.
I wonder if anyone knows how to fix the issue. Maybe some escape character needed? I tried some escape character, but still failed.
Thanks.
Sharon