Hi chaps, dont know if this can be done easily
have a DTS package pointing to a UNC share. A file is placed in the folder for importing into database + some other steps. Theres only ever one file loaded into the import folder at a time then the package is run.
The first step uses xp_cmdshell to rename the file as its a different filename everytime.
Previously this has been fine. Now I need to record the filename in a table so need a step before this to capture the filename. Anyone any idea how to go about this?
cheers
Matt
Brighton, UK
have a DTS package pointing to a UNC share. A file is placed in the folder for importing into database + some other steps. Theres only ever one file loaded into the import folder at a time then the package is run.
The first step uses xp_cmdshell to rename the file as its a different filename everytime.
Code:
declare @cmd varchar(200)
select @cmd = 'rename \\dumas\data\client\dataload\*.csv import.csv'
exec trinity.master.dbo.xp_cmdshell @cmd
Previously this has been fine. Now I need to record the filename in a table so need a step before this to capture the filename. Anyone any idea how to go about this?
cheers
Matt
Brighton, UK