SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2012 Forums
 SSIS and Import/Export (2012)
 SSIS PACKAGE
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

reddy444
Starting Member

5 Posts

Posted - 11/27/2013 :  08:25:44  Show Profile  Reply with Quote
Hi i am new to ssis can any on explain the given scenario


Want to insert a text file into database table, but during the upload wantto change a column called as months - January, Feb, etc to a code, - 1,2,3.. .This codecan be read from another database table called months. After the conversion of thedata , upload the file. If there are any errors, write to error table. Then for all errors, readerrors from database, create a file, and mail it to the supervisor.

reddy

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 11/27/2013 :  10:39:17  Show Profile  Reply with Quote
you need a SSIS package with data flow task
the data flow task will have flat file source and OLEDB destination.
In between you will have lookup task to lookup table containing month details to get code

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page

reddy444
Starting Member

5 Posts

Posted - 11/27/2013 :  11:38:48  Show Profile  Reply with Quote
Hi Visak,
Thank You for quick reply. i am bit confused in setting the properties for lookup transform in between source and destination.
how do i need to map the columns in lookup columns tab. so could you please explain the scenario in detail, i tried to upload screen shot of my screen but could'nt find the insert option here.

please help.

reddy
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 11/27/2013 :  13:02:21  Show Profile  Reply with Quote
yep..you need to map between month column from source to montn column in the other table. then select check box against Code field to get it added to data flow pipeline. Then in final step map Code field to correct field in your destination.

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/
https://www.facebook.com/VmBlogs
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000