thendrickson
Programmer
I have a pretty simple DTS package used to import data from a tab delimited text file.
I have declared a global variable and )created a task to set the variable) which contains the path to the text file
When I set a hardcoded path as the default value, the package executes fine.
But when I remove the default and try to pass in the exact same value, the package fails (file not found).
I call the DTS package from a stored procedure.
The following is the part of the stored procedure that is failing.
declare @test varchar(255)
set @test = 'GlobalVariables("sfilename").Value'
exec @hr = sp_OASetProperty @oPkg,@test,@path
EXEC @hr = sp_OAMethod @oPKG, 'Execute'
@oPkg is the package, @path contains the full path to the file.
I have declared a global variable and )created a task to set the variable) which contains the path to the text file
When I set a hardcoded path as the default value, the package executes fine.
But when I remove the default and try to pass in the exact same value, the package fails (file not found).
I call the DTS package from a stored procedure.
The following is the part of the stored procedure that is failing.
declare @test varchar(255)
set @test = 'GlobalVariables("sfilename").Value'
exec @hr = sp_OASetProperty @oPkg,@test,@path
EXEC @hr = sp_OAMethod @oPKG, 'Execute'
@oPkg is the package, @path contains the full path to the file.