How to suppress result sets returned from a stored procedure?
I have a novice question.How does one suppress result sets returned from a stored procedure?
I have created a procedure which makes use of multiple stored procedures .The purpose of this procedure (lets call it procA), is to count the rows returned from other procedures.The “Other” procedures will return rows having an unknown number of columns.I would like to limit any changes which may be needed to be made to the “Other” procs.
Once procA has collected all of the information (@@rowcount) from the inner procedures, then it will return a result set having several columns – mainly the subProcedure name and number of rows returned.
The purpose ofprocA is to query several subsystems and identify which ones need attention.
Cursor WhileLoop
exec @ProcName @ObjectName,@userID,@syncDate
set @recs=@@rowcount;
My c# program calls the sp as follows:
cmd =DataUtility.GetSQLCommand();
cmd.CommandType =CommandType.StoredProcedure;
cmd.CommandText ="FetchAdminData";
cmd.Parameters.AddWithValue("@userID", userAlias);
cmd.Parameters.AddWithValue("@adminDate",userDate);
reader = cmd.ExecuteReader();
I do not wish to iterate over each resultSet when I am only interested in the last one.Any suggestions?

