Quantcast
Channel: SQL Server Integration Services forum
Viewing all articles
Browse latest Browse all 24688

How do I capture @@ROWCOUNT from a stored procedure?

$
0
0

Greetings,

 

I have a stored procedure that does updates.  The sproc is called from an “Exec SQL Task”.  The sproc returns the number of rows that were updated using this technique:

 

RETURN @@ROWCOUNT

 

How do I capture the sproc’s return value (number of rows) in a package-level variable?  I eventually want to log this value.  The sproc is not returning a result set.  I’m new to SSIS so any general guidance would be appreciated.

 

Thanks,

BCB


Viewing all articles
Browse latest Browse all 24688

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>