run a stored procedure in dta flow task of ssis

Hi All,

Currently I am running a stored procedure in a oledb command and using the output in my other tasks .

My stored procedure updates a column by one number in a loop but oledb command does only one row per dataset.its resulting the same barcode number to all columns.

so i need to know a way to run my stored procedure in data flow and capture results.
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You can use


Exec StoredProcedureName

that would run similar to any select statement
kakarlapudidivyaAuthor Commented:
can we run 2 stored procedures in a ooledb command

if yes then how???
No, you cannot run two stored procedures in a ole db command
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

Reza RadConsultant, TrainerCommented:
look at my post here:

does it what you looking for exactly?
if not explain more about what you want to do
Reza RadConsultant, TrainerCommented:
you can combine two stored procedure in one stored procedure, and run it by an OLE DB Command also if you need.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
kakarlapudidivyaAuthor Commented:
I exactly did the same thing bu caling one rocedure in to another adn i worked fine

Reza RadConsultant, TrainerCommented:
your welcome,

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.