I have a DTS package, where in a step I call a SP. I need to get the rowcount of the select statements inside that SP.The following is the code of the SP, followed by the code used in Execute Sql Task in DTS.SP CodeCREATE PROCEDURE [dbo].[usp_dts_tempusexport] @rc int outputASBEGIN BEGIN TRANSACTION--TempTable - Select Statement - Zero Month Email--______________________________________________________select col1,col2,col3 from TempTable T1 UNION ALL--TempTable - Select Statement - 1.7 Template Email--______________________________________________________select col1,col2,col3 from CustomerDetail T1 UNION ALL--TempTable - Select Statement - 2.1 Three Month Email--______________________________________________________________________select col1,col2,col3 from TempTable T1 UNION ALL--TempTable - Select Statement - 3.1 Six Month Email--______________________________________________________________________select col1,col2,col3 from TempTable T1 Set @rc = @@rowcountSelect @rcUpdate CustomerPurchaseProduct Set TemplateMailId = '1.1' Where TemplateMailId = '-1'Update CustomerPurchaseService Set TemplateMailId = '2.1' Where DateDiff(month,orderdate,getdate()) = 3 and Cast(TemplateMailId as float) < 2.1Update CustomerPurchaseService Set TemplateMailId = '3.1' Where DateDiff(month,orderdate,getdate()) = 6 and Cast(TemplateMailId as float) < 3.1Update CustomerPurchaseService Set TemplateMailId = '4.1' Where DateDiff(month,getdate(),ServiceEndDate) <= 3 and Cast(TemplateMailId as float) < 4.1COMMIT TRANSACTIONENDGOExecute SQL Task Code:----------------------Exec usp_dts_importtempdataDECLARE @RC intEXEC @rc=usp_dts_tempusexport SELECT @RC AS ReturnValue
When I click on Parameters, then I get a message No parameters for the sql statement. What am I doing wrong here?Karunakaran___________It's better to be loved and lost, than ever to be loved...