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)
 Unzip files within DTS package.

Author  Topic 

p.shaw3@ukonline.co.uk
Posting Yak Master

103 Posts

Posted - 2005-11-02 : 09:57:06
I am creating a DTS package that starts by importing some text files. The problem is that the text files are all located in a zipped folder. I really need to start the DTS package by forcebly unzipping the files to a folder, but I do not know how I can achieve this. I know that I can maybe use xp_cmdshell but I am not sure how to do this. Can anyone offer me some good instruction.

Thanks, Pat.

nr
SQLTeam MVY

12543 Posts

Posted - 2005-11-02 : 11:54:03
Get a licenced version of winzip with the command line addon or gzip or 7zip or .....


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page

p.shaw3@ukonline.co.uk
Posting Yak Master

103 Posts

Posted - 2005-11-02 : 13:38:22
But can you tell me how I execute it from within a DTS package? Also, can you get a command line version of WinRar?
Go to Top of Page

derrickleggett
Pointy Haired Yak DBA

4184 Posts

Posted - 2005-11-02 : 18:48:59
Look at Execute Process Task in DTS. You could also use ActiveX. Take a look at www.sqldts.com for more information. Here is some example code for you if you decide to go the ActiveX route.

http://www.databasejournal.com/features/mssql/article.php/1459691

MeanOldDBA
derrickleggett@hotmail.com

When life gives you a lemon, fire the DBA.
Go to Top of Page
   

- Advertisement -