Capturing multiple SQL messages (rows affected etc) while executing a SQL statement using SSIS
Posted on 2010-11-11
When I run a query in SQL, I get a result set and another tab of Messages....I have a large stored procedure that I want to run in SSIS and I want to capture the messages window (not a result set) for review.
For example, if I run the following query:
Update test set testfield = 1 where datefield = '1/1/'2010'
Update test set testfield = 2 where datefield = '2/1/'2010'
I would like to capture the messages screen which might read:
(1551 row(s) affected)
(8773 row(s) affected)
I would like to save those two (in the real case thousands) messaage lines in a file so that I can save the messages for our records....and perhaps review them for error messages, warnings, etc.