Hello,
We have a web application built in classic asp. Back end in sql server 2000.
The application exports as well as imports .csv file to and from a nas path. These are done via DTS packages.
These packages are called via a stored procedure which is invoked from the asp page.
The flow is - asp page --> from asp page sql stored procedure --> from stored procedure DTS package is called.
I am giving the code snippet below with some changes in paths and variable names :
select @command='dtsrun /S'+@server_name+' /E /Nabcd_export /AgivenvID='+ rtrim(ltrim(convert(char,@give_rID)))+' /AgvFileName='+@csv_file_name
exec @ret=msdb..sp_runcmdexec @cmd=@command, @errmsg = @errmsg OUTPUT, @maxminutes = 1, @logfile='\\path\Export.log'
The result of execution will be always written into the Export.log.
The issue is, for certain inputs, the flat file is not getting created . All the prerequisite condtions are met and no errors.
The part of the stored procedure below these commands are also complete, but no flat file is exported. Even the message comes as file has been
created succesfully.
While analyzing the DTS package abcd_export, I could see a "Visual Basic ActiveX Script" being used after passing the variables givenvID and
gvFileName.
The export is working for all other givenvID and gvFileName except a few. Please help.