Solved

SQL2005 SSIS Table Mapping

Posted on 2009-04-09
5
298 Views
Last Modified: 2012-05-06
I have a simple SSIS that reads a table and exports to a .csv file.

The problem is that I have added a field to my table but the outpit to .csv does not see the additional field.

How do I update the mapping to add the new field to the output .csv file?

Thanks
0
Comment
Question by:jdr0606
[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
  • 2
  • 2
5 Comments
 
LVL 11

Accepted Solution

by:
N R earned 250 total points
ID: 24111812
You need to update the step that creates the .csv file and reset the columns so that it will see the new one.
0
 
LVL 11

Expert Comment

by:N R
ID: 24111813
is it only 1 step or 2?
0
 
LVL 9

Expert Comment

by:Sreedhar Vengala
ID: 24112357
Ok if you are using : Flat File Connection Manager to dump data into CSV -> in ConnectionManager ->Columns -> Reset Columns
and in your Flat File Destination Editor -> mapping -> Map Items by Matching Name (will get contextmenu by right clicking on existing mappings)
0
 

Author Comment

by:jdr0606
ID: 24112437
I have attached a screenshot of where I'm having the issue.

As you will see the available input columns has a field at the end labeled "DueDate".

That field does not exist in the Available Destination file or does it appear below to be mapped in either the input or destination column list.

Where do I need to refresh the mapping or do I just need to redo the project.

Thanks
Image2.jpg
0
 
LVL 9

Assisted Solution

by:Sreedhar Vengala
Sreedhar Vengala earned 250 total points
ID: 24112485
Ok..one more step in between in your File Connection Manager Editor -> Advanced -> Create a new column matching the one added in Table

and then when back to : FlatFile Destination Editor: anywhere on the mapping : right click and set the mappings accordingly
0

Featured Post

Enroll in May's Course of the Month

May’s Course of the Month is now available! Experts Exchange’s Premium Members and Team Accounts have access to a complimentary course each month as part of their membership—an extra way to increase training and boost professional development.

Question has a verified solution.

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

In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

739 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