In article <007f01c3c004$5b22df00$a301280a (AT) phx (DOT) gbl>, Peter Newman
<anonymous (AT) discussions (DOT) microsoft.com> writes
Quote:
Alan
thanks for the previous help, im still trying to avoid
having to go that routr. In an ExecuteSqlTask is there a
way to assign the @@rowcount to a global variable? |
Try some SQL like this-
SET NOCOUNT ON
UPDATE dbo.DataPump255
SET Col1 = Col1
SELECT @@ROWCOUNT AS CountOfRows
then click Parameters, Output Parameter, Row Value, and map
"CountOfRows" to the global variable you want.
--
Darren Green (SQL Server MVP)
DTS - http://www.sqldts.com
PASS - the definitive, global community for SQL Server professionals
http://www.sqlpass.org