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.
Author |
Topic |
eric_ht
Starting Member
37 Posts |
Posted - 2008-11-18 : 22:06:50
|
When I call a stored proc inside an ole db source task in a data flow task how do you pass parameters to the stored proc?In the source I call my stored proc as my_stored_proc ? and in the parameters I assign a package variable that I want to pass with the parameter set to 0..this is the same way I do it in an Execute SQL Task.But this doesn't pass anything to the stored proc and returns an error. What am I doing wrong?Thanks |
|
rgombina
Constraint Violating Yak Guru
319 Posts |
Posted - 2008-11-19 : 06:20:21
|
What's the error. |
 |
|
eric_ht
Starting Member
37 Posts |
Posted - 2008-11-19 : 08:09:32
|
The Error received is:The SQL command requires a parameter named "@Parm1", which is not found in the parameter mapping |
 |
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2008-11-19 : 09:14:01
|
quote: Originally posted by eric_ht The Error received is:The SQL command requires a parameter named "@Parm1", which is not found in the parameter mapping
1.you need to declare a variable in ssis to hold the exec spname @param... string and also parameter 2. give evaluate as expression as true for sql string variable and give expression as'EXEC SpName '+ @[user::Yourparametervariable]3.then use sql command from variable option in oledb task and map it to sql string variable. |
 |
|
|
|
|