-2

enter image description here

How to get return value from OLE DB Command Task and use it in Script task?

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
  • Actually i have a flat file to insert using stored procedure i have to get return values for each and every row inserted. how can i get the return value in oledb command task? – user2326218 Feb 26 '17 at 13:56

1 Answers1

-1

You can use Execute SQL task to execute the stored procedure and the returned value from the stored procedure then be set to a variable(i.e map the returned Result set to a variable). This variable can then be used by the script task.

Execute SQL task

enter image description here

Hitesh
  • 3,449
  • 8
  • 39
  • 57