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
 SQL Server Development (2000)
 DTS question

Author  Topic 

claire99
Starting Member

17 Posts

Posted - 2003-08-14 : 09:45:32
Does anyone know how to rename a file using DTS package?
Thanks in advance!

Claire



-------------------
"And we know that all things work together for good to them that love God, to them who are the called according to his purpose." --- Roman 8:28

Merkin
Funky Drop Bear Fearing SQL Dude!

4970 Posts

Posted - 2003-08-14 : 10:00:55
Hi

You have a few options. The two easiest ones would be, use some activex scripting to call the filesystemobject (look up the doco at http://msdn.microsoft.com/scripting ) or you could just run a shell command.


Damian
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2003-08-14 : 11:41:29
You could also do it using xp_cmdshell in a SQL task:

EXEC master.dbo.xp_cmdshell 'rename SomeFile.txt SomeOtherName.txt'

Tara
Go to Top of Page
   

- Advertisement -