If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > Microsoft SQL Server > Question abt reading from SSIS Flat file source

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-09-12, 09:26
RanjitSHans RanjitSHans is offline
Registered User
 
Join Date: May 2006
Posts: 38
Question Question abt reading from SSIS Flat file source

Hi Folks,

I have a simple SSIS package -> It reads a local text file which has 10 rows of data ( id, name, telephone # ) and puts it into a table.

It uses the "SSIS Flat File source" to read and a "SQL Command" to insert into the table. I can see that it reads line by line and puts each line into one row in my table.

Now, my production data is over 5 GiG of mainframe data and it seems their data is arranged in some hierarchical form.. so the position or arrangement of data in that file is important.

I pulled the data using my package and as far as I can see , my SSIS package pulled one line at a time ( from the flat file) and pushed it into my table. For each row, I also created an identity column in my table to be able to identify the positional arrangement of the hierarchical data and then use relational mappings to suit our business needs.

In all of this, my assumption is -

"SSIS reads one line at a time, inserts to my table and goes down to the next line .

It does NOT read a snapshot of rows from the flat file so as to write them into the table using internal ordering methods based on that particular snapshot
"

My question is .. is my assumption correct ?

Thanks as always!

Warm Regards,
RanjitSHans
Reply With Quote
  #2 (permalink)  
Old 02-09-12, 16:21
Wim Wim is offline
Registered User
 
Join Date: Nov 2004
Posts: 1,280
Quote:
"SSIS reads one line at a time, inserts to my table and goes down to the next line .
Correct.
Quote:
It does NOT read a snapshot of rows from the flat file so as to write them into the table using internal ordering methods based on that particular snapshot
"
What do you mean by "internal ordering methods"? Internal to SSIS or the hierarchical database? How would SSIS guess the internal ordering method of the hierarchical data?

You will have to store soma data to relate the new line to the context of the previously processed line(s). When you write it to table, you must use that context data to convert the hierarchical data to data suitable for a relation data model.
__________________
With kind regards . . . . . SQL Server 2000/2005/2008/2008 R2 Earned beers: 16
Wim
Beware of bugs in the above code; I have only proved it correct, not tried it. -- Donald Knuth
Grabel's Law: 2 is not equal to 3 -- not even for very large values of 2.
Pat Phelan's Law: 2 very definitely CAN equal 3 -- in at least two programming languages
Reply With Quote
Reply

Tags
flat files, ssis

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On