SQL Clone
SQLServerCentral is supported by Redgate
 
Log in  ::  Register  ::  Not logged in
 
 
 


Simultaneous loading using ssis


Simultaneous loading using ssis

Author
Message
Kannan Vignesh
Kannan Vignesh
SSC Journeyman
SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)

Group: General Forum Members
Points: 85 Visits: 89
hi,

i am Kannan. i need tmplate for loading flat files into staging as well as historical simultaneously. now i am currently using data flow transformation in for each loop container. first i am loading files into satging server, then inserting to historical server. kindly clarify any other better ways to load the same.



thanks in advance,
Kannan.
blasto_max
blasto_max
Old Hand
Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)Old Hand (377 reputation)

Group: General Forum Members
Points: 377 Visits: 480
Kannan Vignesh (1/3/2014)
hi,

i am Kannan. i need tmplate for loading flat files into staging as well as historical simultaneously. now i am currently using data flow transformation in for each loop container. first i am loading files into satging server, then inserting to historical server. kindly clarify any other better ways to load the same.



thanks in advance,
Kannan.


you need to provide more details about what you want to do.
Evil Kraig F
Evil Kraig F
SSCrazy Eights
SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)SSCrazy Eights (8.7K reputation)

Group: General Forum Members
Points: 8683 Visits: 7660
Kannan Vignesh (1/3/2014)

i am Kannan.

Hello, welcome to SSC.

i need tmplate for loading flat files into staging as well as historical simultaneously.

You've combined three things here at once.

First, that you're looking to generate a template. You don't want to create a template for this because each flat file usually has different construction. If they're the same exact metadata (same field types, same sizes, same order) than maybe you want a template. Then again, for just one or two more, copy/paste is more efficient.

Next, you want to load flat files into staging. That's a simple data flow. Are you having trouble with that component?

Lastly, you say historical. What do you mean by historical? Are you trying to archive the original file for auditing or are you trying to save the record changes into an audit component? The first you'd do want to do in SSIS, the second you'd want to do via a trigger and/or MERGE command to load the older records to another audit table.

now i am currently using data flow transformation in for each loop container. first i am loading files into satging server, then inserting to historical server. kindly clarify any other better ways to load the same.


You would first need to clarify my above questions in this regard. We need a lot more detail then the generic overview you've given us.


- Craig Farrell

Never stop learning, even if it hurts. Ego bruises are practically mandatory as you learn unless you've never risked enough to make a mistake.

For better assistance in answering your questions | Forum Netiquette
For index/tuning help, follow these directions. |Tally Tables

Twitter: @AnyWayDBA
Kannan Vignesh
Kannan Vignesh
SSC Journeyman
SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)

Group: General Forum Members
Points: 85 Visits: 89
curreuntly using structure:

staging server
1.duplicate check--> 2.data flow transformation(flatfileconnection to oledbdestion(temptable) with looping -->3. temp table to live table(staging table)--> 4. insert log table

after that (historical server)
temp table(used in staging server)-->historical table..
Kannan Vignesh
Kannan Vignesh
SSC Journeyman
SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)SSC Journeyman (85 reputation)

Group: General Forum Members
Points: 85 Visits: 89
thank u..

all flatfiles having same kind of data,no of columns also same. data flow task is enough for loading.
historical server contains all data from the beginning like staging. but in staging maintain only ten days data.

my package is working fine. but sometimes if any body runs query to retrive large data in historical server means loading will be affect.
sneumersky
sneumersky
SSCrazy
SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)SSCrazy (2.5K reputation)

Group: General Forum Members
Points: 2496 Visits: 487
I agree with everything Craig has stated.

If I am looking at this thread correctly, one of your challenges is loading into a final target table while that target table is under a query load? If so, the data loading performance guide is a great reference, but ideally you want to have a load time window when minimal activity is happening in the database. However, if you CANNOT avoid this situation, there are ways to mitigate this such as Trace Flag 610 and other stuff in this guide:

http://technet.microsoft.com/en-us/library/dd425070(v=sql.100).aspx
Go


Permissions

You can't post new topics.
You can't post topic replies.
You can't post new polls.
You can't post replies to polls.
You can't edit your own topics.
You can't delete your own topics.
You can't edit other topics.
You can't delete other topics.
You can't edit your own posts.
You can't edit other posts.
You can't delete your own posts.
You can't delete other posts.
You can't post events.
You can't edit your own events.
You can't edit other events.
You can't delete your own events.
You can't delete other events.
You can't send private messages.
You can't send emails.
You can read topics.
You can't vote in polls.
You can't upload attachments.
You can download attachments.
You can't post HTML code.
You can't edit HTML code.
You can't post IFCode.
You can't post JavaScript.
You can post emoticons.
You can't post or upload images.

Select a forum

































































































































































SQLServerCentral


Search