Since I was unable to get the rowcount value from the bulk insert TSQL command in a DTS Execute SQL Task, the alternative I used was to dynamically configure the SQL Statement at runtime with a VBscript and the global variable value of the number of rows that should have been inserted. So the task ends up as:
BULK INSERT (table)
FROM '(file)'
WITH (FIRE_TRIGGERS,
FORMATFILE = '(formatfile)')
IF (34693609=@@ROWCOUNT)
BEGIN
(misc)
END
ELSE
BEGIN
(misc)
END
|