In Microsoft SQL Server Managment Studio, a large query returns all samples. How to do that after Command.Execute to get all selected tables programmatically. Those.
create PROCEDURE [dbo].p1 begin select 1 select 2,3 -- выборка end /*results: 1 2 3*/ What would give two tables and not one. Yes, the request can be "divided" into two, but as long as there is no connection between them through local variables. Of course, you can also transfer them, but Studio catches two or three tables from the stored procedure being executed.
1) I tried OleDb - I could not get additional cursors there. I think that support for multiple tables is embedded in sqlncli.dll. 2) Perhaps somehow you can use sql tools to make such a selection, so that the tables would be folded into a table (cursor field), or for example using sp_msforeachtable.