Integration Services :: Compress Multiple BAK Files To ZIP?

Oct 26, 2015

1. SQL 2008 R2

2. Maintenance Plan -

a. Daily, Weekly, Monthly schedule

b. Full Back Up - All Database, To Disk, for every database and Disk:DirectorySubDirectory*.bak Compress backup

3. SQL Agent Job

a. Runs the Sub_Plan's at scheduled time I've allocated for each Maintenance Plan.

4. These creates Multiple .bak for all database's that list in the directory.

How can I zip them into a compressed Directory.

View 13 Replies


ADVERTISEMENT

Integration Services :: Import Multiple Files Into Multiple Tables Using SSIS

Jun 16, 2015

I have a requirement where in i have around 15 different flat files , filenames are fixed but folder path can be changed(i think i should use a variable for folder path). These 15 files data should go to their respective tables in the database.

Whether I need to create separate data flow task for each file or separate package? In addition to these, example : while importing product data into product table, if product ID already exists, we need to ignore it and upload only the new records.

View 4 Replies View Related

Integration Services :: Import Multiple Files Using Management Studio?

Apr 23, 2015

Using sql server management studio I want to do 2 things.

- Import all txt files from a directory as tables into my DB.

- Add an additional field to each new table which contains the table name.

View 10 Replies View Related

Integration Services :: SSIS - Check For Multiple Files Existing

Aug 20, 2015

I have an SSIS package in VS 2010 that uses flat files to load database tables.  I would like to check for the flat files existing before continuing to run the package.  The flat files each have their own connection manager. I was wondering if I could use the connection managers to determine the file names instead of creating a Script Task and hard-coding each of the file names to check.

View 4 Replies View Related

Integration Services :: Load Multiple Files From Table Using For Each Loop Container

Oct 28, 2015

I have a requirement to load multiple flat files in target table .

I have created the package which used to load files into target table using For each loop container.

But now requirement has been changed now I have to take only those files from table where status="Success" and max JobId. By the query I am to get those records which need to load into table.

Below query I am using to get the files which need to load.

select [JobLogKey],[SrcNm],[DestNm]
FROM [ConfigRep].[dbo].[JobLog]
Where [JobId]=
(Select Max(cast([JobId] as Int)) Jobid
FROM [ConfigRep].[dbo].[JobLog]
Where [JobStat]='Success')

Output:-

JobLogKey SrcNm   DestNm
268 H:Data PlatformSource FileClient2LocHGSSpecLocation.txt Location.txt
269 H:Data PlatformSource FileClient1LocHGSSpecLocation.txt Location.txt

I have to load using above 2 files which are under SrcNm. I have created one variable called FileToLoad as Object and mapping to result set of above query. I have create JobId,SrcNm and DestNm variable to catch the record at every loop. I have  created 2 For each Loop container 

Below screen shot of outer Foreach loop. Till here Its working fine. Inner for each loop container not executing any task under that. How to get it done.

View 3 Replies View Related

Integration Services :: Load Multiple Flat Files Into Destination Dynamically?

May 29, 2015

how do you load the multiple flat files  to into destination dynamically?

View 9 Replies View Related

Integration Services :: Loading Multiple Flat Files Into Different Tables Using SSIS?

Oct 25, 2015

I have been tasked to do the following using SSIS.

We received two csv files each week and we would like to load these files to two different sql server tables using SSIS.

These files should be archived into a folder after each load.  

How can I achieve this?

View 6 Replies View Related

Integration Services :: How To Load Multiple Excel Files With Same Column Names

Apr 29, 2015

I have multiple excel Files  each has one sheet (With same column names) need to be loaded in a single table. I tried For each loop but couldn't succeed.  

As I am new to SSIS. How to configure For each loop container for this...

View 5 Replies View Related

Integration Services :: SSIS Project - Read Multiple Flat Files With Different Formats

Jan 15, 2014

I need to import multiple flat files with different formats into different tables of the sql server database and not able to figure out the best way out in ssis to do so...

What are the possible methods in ssis to do so and if possible the process which can be dynamic as file names or columns might change in future.

View 7 Replies View Related

Integration Services :: SSIS Script Task To Convert XLSX Files With Multiple Sheets To CSV File

Dec 11, 2014

I have been strunggling to find solution to convert XLSX files with multiple sheets to csv file.

Requirements
>> Convert XLSX file with multiple sheets to CSV file
>> CSV file names : XLSX filename + '_' + sheet name
>> scirpt has to be in VB as i am using ssis 2005
>> I started develping scirpt using Micorosoft.office.interop.Excel.dll . this dll is referenced to script task.
>> found web link as useful.. [URL] ....

View 4 Replies View Related

Integration Services :: Move Multiple Files Based On File Names Listed In A Spreadsheet / File?

May 27, 2015

I need to move specific files from a server to another server on a monthly basis.  There are hundreds of files that are in the source directory and I need to move approximately 40 of those to the destination server.  I would like to easily add or delete the file list as needed.  I have seen where several variables were created for for each file name (and one for the path) and the ForEach Loop would go through them.  With 40 or more I was thinking that I could make a connection to an Excel spreadsheet or text file with a record for each file name and read in and and move to the next record and make that value become the content of a "FileName" variable.  Then if I wanted to add another file name I could just add another record to spreadsheet/text file or remove and the package would handle automatically....

View 10 Replies View Related

Integration Services :: Converting RTF Files To PDF Files?

Jun 25, 2015

I have a scenario where I need to convert RDF files to PDF files? may I know is this achievable in SSIS - writing C# code?

View 6 Replies View Related

Integration Services :: Insert Multiple Columns As Multiple Records In Table Using SSIS?

Aug 10, 2015

Here is my requirement, How to handle using SSIS.

My flatfile will have multiple columns like :

ID  key1  key2  key3  key 4

I have SP which accept 3 parameters ID, Key, Date

NOTE: Key is the coulm name from the Excel. So my sp call look like

sp_insert ID, Key1, date
sp_insert ID, Key2,date
sp_insert ID, Key3,date

View 7 Replies View Related

Integration Services :: Import Data From Multiple Excel Sheets To Multiple Tables Using SSIS?

Aug 25, 2015

I have an excel file that has multiple sheets and I need to import data from each separate sheet to a separate table using SSIS. 

E.g. Sheet A data should go to Table A and Sheet B data should go to Table B and so on. Is it possible to do this with out using script task.

View 6 Replies View Related

Integration Services :: Copying Files From One Server To Another

Aug 25, 2015

I am copying files from one server to another and I have specific format for all jpg files. which is in 3 format

filename_reg.jpg,
filename_kat,
filename_pag

and I want to copy _reg files only using file system task.I have already created file sytem task using foreach loop and it is copying files but I want to copy only _reg files.

View 5 Replies View Related

Integration Services :: Multi Files In One Shot

Jul 21, 2015

i have multiple folders in a directory and each folder contains multiple files of same extension but with different formats(columns) and names(xmp: file aand file b). We have a data task in which we are joining(merge) both files and loading into table..should i use foreach, but then it takes 1 file at a time and i need the other file also to join it in data flow.

View 4 Replies View Related

Integration Services :: How To Add The Double Quotes In Csv Files

Aug 31, 2015

i have csv files, it contains 5 columns.

i need to add the double quotes in all the records from start and end.

source data
col1     col2            col3          col4
1        abdul   this is email      it was very good ,and very relative posts.
Target data
col1  col2         col3                          col4
"1" "abdul"   "this is email"    "it was very good, and very relative posts"

View 2 Replies View Related

Integration Services :: Load Three Files Three Different Destinations

Sep 10, 2015

I have one folder in that i have 3 files

1) customer.txt
2) employee.txt
3) student.txt

i want to load these three files three different destinations customer file should go one destination table, employee file should go one destination table, student file should go one destination table tomorrow if i get some more files in same folder , those files also should go separate destinations these should happen dynamically.

View 7 Replies View Related

Integration Services :: Load Different Source Files Into Tables

Oct 12, 2015

I have one small requirement.. I want to load the different types of files(.txt, .csv, .tsv, .xlsx).

Using one forearch loop container how can I load the files to database and I shouldn't use the script task to split the filenames. Is there any other way to load all the files using forearch loop container, exesql task..

View 2 Replies View Related

Integration Services :: Load OR Import Files From Amazon S3

Jun 18, 2015

Client uses an Amazon S3 bucket which they load flats files to .  They also expect files to be delivered there to.So at the minute I have an SSIS package (SQL2012 )  which I use to generate some files but then have to manually import the files to the S3 bucket as well as export others.Now Mike Yin ( For SQL2008R2 ) mentioned that you need to obtain PostgreSQL ODBC driver so that you can use the .Net ProvidersOdbc Data Provider for ADO.NET Source component to connect to the Amazon cloud storage. After that, you can use a OLE DB Destination to load the data to SQL Server database. 

Installed both 32 and 64bit 9.03.  New connection Manager ADO.NET  - New then drop the provider down to ODBC.Dataprovider.Then what ?  Do I put the S3 bucket address within the use connection string ?  Is there and example ? Why do I need the PostgreSQL ODBC as Im not connecting to a database just a S3 Bucket?  

View 3 Replies View Related

Integration Services :: Creating Files From Their Binary Representations In DB

Apr 29, 2015

We run std 2008 r2, I need to recreate flat files from their varbinary(max) equivalents in our db. I have a mix of excel, pdf, word etc to recreate.  Will ssis be a good tool for doing this?  I'm wondering what transform(s) would be involved. 

Perhaps I need to cast to varchar 1st and then land the data but if I recall correctly there is a maximum record length in ssis destination flat file rows.  And I'm thinking I would have to map the varbinary (or cast equiv) to a row in the destination once for each file created.   

View 4 Replies View Related

Integration Services :: Reading Excel Files From Sharepoint?

Sep 30, 2015

We'll be using 2014 enterprise to stage some excel files into sql.  Can ssis read excel files from a sharepoint server? 

View 4 Replies View Related

Integration Services :: Load Flat Files From S3 Into 2008 R2?

May 12, 2014

We have a few customers dropping files in Amazon S3. how to load this data into SQL Server 2008 R2 database using SSIS? We are 2008 R2 BIDS environment.

View 5 Replies View Related

Integration Services :: Import Files With Different Header Structures?

Jun 13, 2015

I currently have a directory of csv import files, all of which have the same data structure but different header information.

For example:

File 1
This is header info.
This is header info.
This is header info.
ID,Name, DOB, etc…

File 2
This is header info.
This is header info.
This is header info.
This is header info.
This is header info.
ID,Name, DOB, etc…

The data starts with the column title row, ie ID,Name, DOB.What I need to happen is process that removes all the header rows up to the title row so that all import file structures will be the same.

I was thinking of using a ForEach Loop container that will run a script on each of the files to remove the header.

View 5 Replies View Related

Integration Services :: Importing From Complicated Excel Files

Jun 3, 2015

I have several regular reports that are produced by different offices that I need to import the data from.  The challenge lies in the fact that the reports are not simply columns of data.  Some cells are labels, others contain data, and some contain both.  Also, the formatting of the reports isn't strictly uniform from office to office.  Is it possible to read this kind of sheet?  Excel data sources seem to just define everything in a column as data, and that doesn't work for me.  Is there an alternative, or perhaps a more manual way of defining what cells contain data?

View 10 Replies View Related

Integration Services :: Move Files Based On Filename?

May 12, 2015

I have a requirement to move files from HOLD folder to input folder. In HOLD folder I receive multiple files starting with af, ai, ar i.e. af*.txt , ai*.txt, ar*.txt . I need to move one file at a time to input folder as each file is to be loaded into database before next file is processed. In all the files the SSIS has to look at ai*.txt files first followed by af*.txt and lastly ar*.txt. If there are multiple files of same group the file with oldest date has to be moved first. How do I achieve this?

View 5 Replies View Related

Compress/Zip Reporting Services Export Options

Dec 4, 2006

Hey everyone,



I have an issue where i am sending out files with 30,000+ lines and they are reaching the 11mb, 12mb in size.

This is becoming and issue for us, as we are only allowed to email up to 10mb in size.

I have tried reducing all spaces in the data, removing any graphics etc from the report , but still the excel file is over 11mb. One thing i did find was that, if i export it to excel, then open the file and save as a different file name the file size drops 50% !!

I was wondering if anyone has been able to zip/compress the exported file before it gets emailed?

It would be a great feature for MS to include in the next service pack.. Take advantage of the built in Zip support in Windows..

Look forward to hearing any suggestions that the community may have,


Thanks

Scotty

View 5 Replies View Related

Integration Services :: For Each Loop To Import Files With Missing Columns

Aug 17, 2015

I have to load on SS2012 hundeds of excel files produced by an application over the last five years, during time few columns have been added to the initial set.I created on SS2012 a table to match with the full set of columns and want to load all the files inside the table leaving the missing cells to NULL. I think SSIS can do the job but every trial failed do far.

View 4 Replies View Related

Integration Services :: How To Traverse Files Under Subfolder Using Folder Option

Apr 29, 2015

My files are stored as Newborn.txt under each year's subfolder, How to implement this.

Eg: C:RaviN90Newborn.txt
  C:RaviN91Newborn.txt
C:RaviN92Newborn.txt
C:RaviN93Newborn.txt

How to read the files using the for each loop container"

View 5 Replies View Related

Integration Services :: SSIS Dynamically Export Tables To Raw Files

Nov 16, 2011

Every day an application creates new tables and dumps static info into them. 

I would like to create a package to dynamically export those database tables to raw files for long term archive, one file per table. Here is what I have so far and the issue I am having.

1)     Get a list of un-archived tables.
2)     Foreach table do the following.

a. Export the table into raw file.
b. Zip the raw file.
c. Update archive tracking table.

As long as the metadata for each table is the same this package seems to work fine. However, I have many tables with different metadata.  How can I dynamically get the package update the metadata column collection when it hits a new table? When it hits a table with different metadata I am getting warnings like this:

The column "some_column" needs to be added to the external metadata column collection.

The "external metadata column "someother_column" (103)" needs to be removed from the external metadata column collection.

Then I get this error:
Error: 0xC004706B at dump the table into a raw file, DTS.Pipeline: "component "OLE DB Source" (1)" failed validation and returned validation status "VS_NEEDSNEWMETADATA"

View 7 Replies View Related

Integration Services :: How To Download Files Via SFTP Using SSIS 2014

Jul 14, 2015

We are using SSIS 2014 and need to download files from sftp. Is there a SFTP control flow task for SSIS 2014? If not then what other options do I have?

View 6 Replies View Related

Integration Services :: SSIS - How To Load 2 Different Excel Files To 2 Different Tables

Jul 29, 2015

I have 2 different excel files file1 and file2. file1 should be loaded to table1 and file2 should be loaded to table2. Both of the files will have 1 sheet inside. Do I need to create separate excel source for file1 and file2? I mean file1 in one excel source and that will be connecting to 1 execute sql task. file2 in other excel source and that will be connecting to another execute sql task. Is this the way I should proceed or is there any looping should be done?  I need to schedule this activity to run every week. So, I'll get new files every week with the same file names and sheet names. Do I need to consider anything for this requirement also?

I'm planning to do truncate and reload not an incremental load.

View 5 Replies View Related

Integration Services :: Unzip Files Using Execute Process Task

Jul 6, 2015

while i am trying to unzip files using execute process task ,getting below error

[Execute Process Task] Error: In Executing "C:Program Files7-Zip7z.exe" "a -tzip D:excel.zip D:unzipfileexcel.xls" at "", The process exit code was "1" while the expected was "0".

Warning: SSIS Warning Code DTS_W_MAXIMUMERRORCOUNTREACHED.  The Execution method succeeded, but the number of errors raised (1) reached the maximum allowed (1); resulting in failure. This occurs when the number of errors reaches the number specified in MaximumErrorCount. Change the MaximumErrorCount or fix the errors.

i want to know more about unzip and zip files and folders using execute process task.

zip folder:  C:Program Files7-Zip7z.exe
SQL version: SQL server 2008 R2

do not having win rar so please instruct using 7z.its quite interest to work but i don't know to get desired result.

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved