Solved

Can SQL DTS (or script) FTP or HTTP, extract, and...

Posted on 2006-11-28
7
451 Views
Last Modified: 2011-10-03
Can an SQL DTS package ftp (get) a password protected zip file, extracts the contents (Access 2000 database file) to a predetermined location so that the contents can be imported into SQL?  If so, I could use some help.  

SQL Server is SQL Server is Microsoft SQL Server 2000

(reworded from above for clarification)
The situation:  We are trying to automate the following process.
1)  FTP (get) a zip file (Less than 5mb in size)
2)  Extract the contents of the zip file (file is password protected).   <em>The file within the zip file is an access 2000 database file with about 15 tables.</em>
3)  Import these 15 tables into our SQL Server.

I need help with Step 2.  We already have a DTS package to handle step 1 and Step 3.  
0
Comment
Question by:dl8453
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 3
7 Comments
 
LVL 16

Expert Comment

by:Hillwaaa
ID: 18031938
Hi dl8453,

Probably not the only way to do it, but you could use an "Execute Process" task to call the unzip

set the win32 process to be winRAR or Winzip and the parameters as the appropriate command line parameters.  For example the following creates a rar file of the northwind backup file.
A -df C:\data\northwind.rar C:\data\northwind.bak  

Cheers,
Hillwaaa
0
 
LVL 1

Author Comment

by:dl8453
ID: 18040603
Hillwaaa,

I'm not technical enough to understand what you are suggesting above.  Can you elaborate or do you have a different approach?

Daryl
0
 
LVL 16

Accepted Solution

by:
Hillwaaa earned 250 total points
ID: 18041890
No worries:

What I've suggested doing is using the command line verision of winzip to unzip your file.  There is a bunch of info on command line parameters here (http://www.memecode.com/docs/winzip.html).

So basically what you want is to create a new "Execute Process" task, with the following:

win32 process = "c:\....\winzip32.exe"
Parameters = -e -s"Secret Password" filename[.zip] folder

Obviously you need to put in the correct path to winzip32.exe, and replace the password, filename and folder values.

Let us know how you go.
0
NEW Veeam Agent for Microsoft Windows

Backup and recover physical and cloud-based servers and workstations, as well as endpoint devices that belong to remote users. Avoid downtime and data loss quickly and easily for Windows-based physical or public cloud-based workloads!

 
LVL 1

Author Comment

by:dl8453
ID: 18045798
Ahh.. thanks for the link.  I will check this out with my teammates.  We are supposed to meet tomorrow (Friday) so it may be next week before I can reply but I will let you know how it goes for us.

Thanks,
Daryl
0
 
LVL 16

Expert Comment

by:Hillwaaa
ID: 18313076
I'm pretty sure that I provided a workable solution for this - I use the same process in DTS in reverse (backup, zip and ftp) myself, just minus the password protection.
0
 
LVL 1

Author Comment

by:dl8453
ID: 18316587
My apologies on the delay of accepting your solution.  We decided to go another direction but your solution did work for the problem stated above.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
The Delta outage: 650 cancelled flights, more than 1200 delayed flights, thousands of frustrated customers, tens of millions of dollars in damages – plus untold reputational damage to one of the world’s most trusted airlines. All due to a catastroph…
Via a live example, show how to extract information from SQL Server on Database, Connection and Server properties
Using examples as well as descriptions, and references to Books Online, show the different Recovery Models available in SQL Server and explain, as well as show how full, differential and transaction log backups are performed

691 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question