I Need to execute 2 Procedures
Ex :
Exec usp_Employee @name = 'Employee' Exec usp_Department @ID = 2,@name = 'Department'
I have a master table where I have records like this
ID name 1 Employee 2 Department 3 Class
How can I pass this table data into variables send to the Procedure as parameters
The Employee name should go to usp_Employee Procedure as parameter and the ID and Department name should go to usp_Department Procedure as parameter
I have created Execute SQL TASK in that I have placed this Procedures
Exec usp_Employee @name = ?
Exec usp_Department @ID = ?,@name = ?
And used For loop container but it is not executing as expected.
How can I loop the master table data into variables and pass it as parameters to those Procedures.
Suggest me