I execute several discrete queries in one batch against SQL Server. For instance:
update tableX set colA = 'freedom';
select lastName from customers;
insert into tableY (a, b, c) values (x, y, z);
Now I want to write the result to a DataSet (from the select statement), which is simple enough to do ... but how do I also grab the meta response from this command, similar to the way the Query Analyzer / SQL Mgt Studio does this when it displays the tab " Messages, "and duplicates something similar to:
(1 Row affected)
(2 Rows Updated)
source
share