Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 Transact-SQL (2000)
 dts package

Author  Topic 

Angela
Starting Member

11 Posts

Posted - 2005-04-14 : 14:38:34
i am trying to run the following code through a dts package

set @cmd = 'dir /b ' + @PATH + '\*DWC09*.txt'
Insert into last_processed_file_t (hcfa_filename)
exec master..xp_cmdshell @cmd

it executes fine through the analyzer however it will not execute through the dts package.. is it a rights issue on the path..and if so what user executes the dts package?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2005-04-14 : 16:21:07
Please see the permissions of xp_cmdshell in SQL Server Books Online. That's what the problem is.

Tara
Go to Top of Page
   

- Advertisement -