September 10, 2012 at 10:14 pm
Hi,
How can we agonize,Row by row like cursor in SSIS, what controls will be using,
Here am reading data from excel , now I want to apply all client business logic's one row at a time, once completed i want to move second row..
Please let me know how can i perform.. ?
September 12, 2012 at 1:52 am
What sort of thing are you trying to do? Depending on the size row by row updates could be slow
I guess you have a few options but I think if the business logic is complicated I'd be tempted to dump the data into a staging table then run a stored proc
The other option would be to use a script component in the data flow
If the logic is simple (eg first three characters of a column) then I guess you could use a derived column in SSIS or a slow option could be puting a SQL function on the import table 😀
Mack
September 12, 2012 at 4:30 am
Yes, I decided to make as Sp and calling directly from Import tool...
September 12, 2012 at 8:42 pm
Saravanan_tvr (9/10/2012)
now I want to apply all client business logic's one row at a time, once completed i want to move second row..
Yes, I decided to make as Sp and calling directly from Import tool...
Did you end up using somme form of loop for this? If so, this is going to be much slower than writing a set based validation routine. Why are you insisting on the use of RBAR?
--Jeff Moden
Change is inevitable... Change for the better is not.
September 13, 2012 at 10:56 pm
Yes, We have a cross validations with 10 Master table then Update and Insertions based on the Logic. from excel one row at a time. as per the client requirements ..
September 14, 2012 at 8:00 am
Saravanan_tvr (9/13/2012)
Yes, We have a cross validations with 10 Master table then Update and Insertions based on the Logic. from excel one row at a time. as per the client requirements ..
That does not sound like a reason to this RBAR. You can do all that using MERGE and OUTPUT.
_______________________________________________________________
Need help? Help us help you.
Read the article at http://www.sqlservercentral.com/articles/Best+Practices/61537/ for best practices on asking questions.
Need to split a string? Try Jeff Modens splitter http://www.sqlservercentral.com/articles/Tally+Table/72993/.
Cross Tabs and Pivots, Part 1 – Converting Rows to Columns - http://www.sqlservercentral.com/articles/T-SQL/63681/
Cross Tabs and Pivots, Part 2 - Dynamic Cross Tabs - http://www.sqlservercentral.com/articles/Crosstab/65048/
Understanding and Using APPLY (Part 1) - http://www.sqlservercentral.com/articles/APPLY/69953/
Understanding and Using APPLY (Part 2) - http://www.sqlservercentral.com/articles/APPLY/69954/
Viewing 6 posts - 1 through 5 (of 5 total)
You must be logged in to reply to this topic. Login to reply