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