Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Author |
Topic |
under2811
Constraint Violating Yak Guru
366 Posts |
Posted - 2008-09-24 : 11:53:50
|
Hi,I have few scenarios where I need to design SSIS..Scenario1: How to join two text files and put single record in DB tablelike my text file containsText1.txtID|Name1|ABC2|DEF3|HIJText2.txtID|City1|ZZZ2|MMM3|LLLmy DB table EMP should get record like ID--Name--City1--ABC--ZZZ2--DEF-MMM3--HIJ--LLLscenario2:In text file records likeNameABC,ZZZDEF,XXXHIJ,KKKtext file contains records (first name & last name) having CSV.my DB table EMP have columns like FirstName & LastNamemy out put should getFirstName--LastNameABC--ZZZDEF--XXXHIJ--KKKscenario3: I have table having different customer informationlikeCustID--ProductID--ProductName1--10--WoodStand1--20--WoodTable2--10--WoodStand3--30--Chair3--40--RowTable3--50--FinishedGoodI need to export these records in text file and put into repective customer folder on my D:Structure of folder is D:\CustID1\Text1.txtD:\CustID2\Text2.txtD:\CustID3\Text3.txtbut i dont know how many customers I have in table.Please help me outT.I.A |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-09-24 : 12:04:17
|
Scenario1-------------1.Data Flow task inside whicha,Two Flat File Source to connect to both filesb,Merge Join task to merge the records from both based on IDc,OLEDB destination to insert the values to destination table.Scenario2----------1.Data Flow task inside whicha,One Flat File Source to connect to text filesb,Derived Column Task to get two columns (first name & last name) valuesc,OLEDB destination to insert values to table.Scenario3--------------1.data flow task whicha,OLEDB source to get table datab,SQL task get count of customersc,ForEachLoop to loop for each customerd,Flat file destination to move only reqd customers data to file. |
 |
|
under2811
Constraint Violating Yak Guru
366 Posts |
Posted - 2008-09-25 : 03:31:51
|
HiReally Thanks |
 |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-09-25 : 04:19:02
|
welcome again |
 |
|
|
|
|
|
|