SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


package for zip files.


package for zip files.

Author
Message
weston_086
weston_086
SSC Veteran
SSC Veteran (267 reputation)SSC Veteran (267 reputation)SSC Veteran (267 reputation)SSC Veteran (267 reputation)SSC Veteran (267 reputation)SSC Veteran (267 reputation)SSC Veteran (267 reputation)SSC Veteran (267 reputation)

Group: General Forum Members
Points: 267 Visits: 464
I have files which are saved in the web folder.and i get the file in the web folder every day which is in zipped format.Now i want to download the file from web folder which is in csv format and then unzip that file and load that to the table .The file comes with the date at the last (for e.g for today it is james_2012_11_07 and tomorrow it will be james_2012_11_08).Now, i want to create the package which should first download the .csv file then unzip that after that i want to upload that unzip file to the table ever day.How i can create that package?.
Tava
Tava
Right there with Babe
Right there with Babe (765 reputation)Right there with Babe (765 reputation)Right there with Babe (765 reputation)Right there with Babe (765 reputation)Right there with Babe (765 reputation)Right there with Babe (765 reputation)Right there with Babe (765 reputation)Right there with Babe (765 reputation)

Group: General Forum Members
Points: 765 Visits: 806
weston_086 (11/7/2012)
I have files which are saved in the web folder.and i get the file in the web folder every day which is in zipped format.Now i want to download the file from web folder which is in csv format and then unzip that file and load that to the table .The file comes with the date at the last (for e.g for today it is james_2012_11_07 and tomorrow it will be james_2012_11_08).Now, i want to create the package which should first download the .csv file then unzip that after that i want to upload that unzip file to the table ever day.How i can create that package?.


Not sure if i understand all of what you wanted so if you can clear up a few things be helpful.

Process

1 . Web folder has a file. Is it zipped or is it a CSV file? you've mentioned it is both??? I'm assuming its a .zip and when unzipped it is a CSV file.

2. You want to download the file from the web folder to a folder on your hard drive? Is the web folder a FTP or just a shared folder (assuming it's a shared folder)

3. Unzip the File so it is a CSV.

4. The CSV file is labelled "James_YYYY_MM_DD"

5. You then want to put that CSV file into your Table?


So basically you want a SSIS package that will do the above automatically? If thats correct then you will need to

1. Create a SSIS package with a File System Task editor that moves/copies the zip file from 1 folder to another folder.

2. Create a Process Task editor that unzips the files (use gZip.exe with its command lines to do this)

3. Create a Flat File Connection Manager for that CSV file to be picked up automatically (most likely it will be a variable cause of the date changing)

4. Data flow task puts the CSV into ETL tables (Raw table -> Staging table)

5. Simple stored proc to insert from Staging to Live.


the above probably isn't correct just based on assumptions.
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search