Using OLE DB Command to insert into a parameterised stored procedure

Hi Experts

I have an ETL task that uses the dataflow component OLE DB Command. I have 24 inputs which I'd like to map to a parameterised stored procedure.

e.g. I specify a sql command of

exec dbo.InsertCustomer @id=?,@name=?,@email=?.... etc etc

However when I try and include >20 of the available input columns I hit an error "Invalid parameter number". In the column mapping tab I only ever see the first 20 destination parameters.

How can I workaround this in SSIS?

Thanks in advance
CallConnectionAsked:
Who is Participating?
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.

PedroCGDCommented:
Make sure the number of parameters in the SP is the same than OLEDB Command...

use also this command:
EXEC InsertCustomer ?,?,?,?,?,?,?

and go to mapping to link source and destination.
Regards,
Pedro
0
CallConnectionAuthor Commented:
Yes I have, but anything over 20 does not come through as an "Available Destination Column".

Why can't I specify a parameter name? if I have EXEC InsertCustomer ?,?,?,?,?,?,?  it's even more confusing - I'll give it a try though.
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
CallConnectionAuthor Commented:
Thank you. I've left it until Monday, a fresh set of eyes and have it working now I think.
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.