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.
kakarlapudidivyaAsked:
Who is Participating?

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

x
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.

vdr1620Commented:
You can use

SET FMTONLY OFF
SET NOCOUNT ON

Exec StoredProcedureName

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

if yes then how???
0
vdr1620Commented:
No, you cannot run two stored procedures in a ole db command
0
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:
http://rad.pasfu.com/index.php?/archives/24-Output-Parameter-of-Stored-Procedure-In-OLE-DB-Command-SSIS.html

does it what you looking for exactly?
if not explain more about what you want to do
0
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.
0

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

thanks
0
Reza RadConsultant, TrainerCommented:
your welcome,
Regards,

0
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.