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 2005 Forums
 SSIS and Import/Export (2005)
 Execute SQLTask

Author  Topic 

sg2255551
Constraint Violating Yak Guru

274 Posts

Posted - 2007-01-22 : 11:21:20
hi

How do test an ExecuteSQLTask with 2 input parameters? I ran the task and i seems not able to supply values to the parameters.

This is my sample sql script: select * from tblA where columnA >= ? and columnA <= ?

I created 2 variables using parameter mapping.

I hope i did the right thing. Thanks

nr
SQLTeam MVY

12543 Posts

Posted - 2007-01-22 : 12:58:43
I usually use an expression to create the command.
A stored proc call or values in an insert work with parameters but an sql statement seems to have trouble (at least I haven't found a way to do it).


==========================================
Cursors are useful if you don't know sql.
DTS can be used in a similar way.
Beer is not cold and it isn't fizzy.
Go to Top of Page
   

- Advertisement -