Export Data Starting From Special Cell in Excell File – SSIS

Sometimes you have a formated Excel file, which you want to use this file as Destination, so you may need to import data start from special Cell inside the excel file.By default SSIS import data from Column1 and Row1 in excel file. But you can change it. Solution: Suppose this excel format: in this sample Read more about Export Data Starting From Special Cell in Excell File – SSIS[…]

SSIS – Sql Server to XML – Save to file

As you know there is no XML destination in SSIS. so how you can save result of a query from sql server to XML file? Solution is: First Of all you can use FOR XML to get result of query in XML , look at our sample query : SELECT EmployeeID,NationalIDNumber,ContactIDFROM HumanResources.Employee FOR XML RAW(‘Facility’),Root(‘Extract’),Elements  Read more about SSIS – Sql Server to XML – Save to file[…]

Output Parameter of Stored Procedure In OLE DB Command – SSIS

I encounter a question today which was about using a Stored procedure inside a Data flow task, and use result of stored procedure which returned by output parameter beside other columns in Data Stream. Solution with sample: Suppose your stored procedure has an input parameter and output parameter. I show you a simple stored procedure Read more about Output Parameter of Stored Procedure In OLE DB Command – SSIS[…]

How to handle Failed Rows in a Data Flow

suppose this scenario: you have a source table and a destination table, you want to transfer rows from source table to destination table, so you can use simple data flow with OLE DB source and OLE DB Destination. but problem hits when destination table has few rows inside, and there is Unique Constraint in ID Read more about How to handle Failed Rows in a Data Flow[…]

Looping through specific files – SSIS

As you may know, there is an enuerator in Foreach Loop Container which help you to loop through files, named File Foreach Enumerator. you can specify a location for searching through files and get files as enuerator in loop.But, there are some times which you need to loop through specific files not all of files Read more about Looping through specific files – SSIS[…]

XML Task – Changing Style of Data – XSLT

I wrote about Validation with XML Task in SSIS here before, now I want to write about XSLT in this post. XSLT is an acronym of eXtensible Stylesheet Language Transformation. XSLT can transform given XML document to new style. this is very good way for reading complex XML documents where XML source has week ability Read more about XML Task – Changing Style of Data – XSLT[…]

How to use Script Component as Asynchronous Transformation

Suppose you have a flat file which is not delimited or fixed width or Ragged right. the structure of data is not well formed for Flat File Connection manager to read,  This is an example of data file: date                     : 04/14/2010customer name        : John doeaddress                  : 2014 apple st. Chicago, IT 30000sale order        Read more about How to use Script Component as Asynchronous Transformation[…]

Foreach Loop based on Variable – SSIS

There are lots of times that you need to set your own enumerator in foreach loop container. For example you want to select special sub directories based on specified conditions and then you want to loop through them. so you need to make your own enumerator. so it’s better to create a variable which contains Read more about Foreach Loop based on Variable – SSIS[…]