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.
| 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
|
| HiYou 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 |
 |
|
|
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 |
 |
|
|
|
|
|