Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 SSIS and Import/Export (2008)
 OLEDB Comman Stored Proc Parameters

Author  Topic 

CloudDeity
Starting Member

1 Post

Posted - 2011-03-30 : 14:24:01
I need help with my data flow

Short version
I have source and I'm trying to pass it down to an OLE DB Command
I'm trying to call a stored procedure in that Command and I want to pass in data from my source as parameters for my Stored Proc
My command looks like

exec sp_My_SP ?,?,?

But I get an error and I cant map my parameters
How do I fix this

Long Version
I have a source where I get names of people and their addresses
Table 1 has the name and I generate a key
Table 2 has the address and an FK referencing Table1
Basically I want to insert into table 1, generate a key and use that in table2
And since you cant get the identity of the item you just inserted and reuse that in your data flow - I tried doing it all at once in a stored procedure. But I have trouble passing in parameters into a stored procedure in my data flow.

Any help would be nice
Thanks
   

- Advertisement -