Is the total count for information purposes (i.e. this could be calculated before the data is copied) or for veification that
the correct amount of data was copied (i.e. this would have to be calculated after the data is copied)?
If the first case is true you could maybe build a view with a count of the resultset union with the resultset itself (the number of fields
in both selects with have to be the same with the same datatypes) then use DTS to export this view to the text file.
Regards,
Andy Jones
andyj93@hotmail.com