Load data to excel template using SSIS

Step 1:

My excel template looks like bellow and want to load into this template 

Step 2:

My input data like bellow

Step 3:

Drag and drop data flow task to control flow tab

Step 4:

Edit data flow task and drag & drop OLEDB source as shown in bellow

Edit source

Provide server and data base name


Select data access mode as SQL command and provide SQL query


Click on preview data

Step 5:

Drag and drop excel destination


Click on new connection manager

Browse template from system



And select sheet name from excel sheets


Map source with destination columns 


Step 6:

Some columns having data conversion issue as shown in bellow

Drag and drop data conversion transformation

Change data type of Region column as shown in bellow

And map with new region column

Step 7:

Execute task

After execution i got task validation issue as shown in bellow

Rectifying task validation error, have change ValidateExtrnalMetadata of destination to False


Execute again

Data was loaded to my report template as shown in bellow


Comments

  1. Really good information to show through this blog. I really appreciate you for all the valuable information that you are providing us through your blog.

    ReplyDelete
  2. I appreciate the time you spent finding that information

    ReplyDelete

Post a Comment

Hi User,
Thanks for visiting My Blog and please provide your valuable feedback and subscribe for more updates. Please don't post any spam content or comments.
Thank You

Popular Posts

Failed to execute the package or element. Build errors were encountered

Restore of database 'DataBase_Name' failed. (Microsoft.SqlServer.Management.RelationalEngineTasks)

Cannot convert "Column" between a unicode and a non-unicode string data types in SSIS