sql - Create table from nth result set of stored procedure -


I have a stored procedure that gives 4 result sets. There are many columns in the result set

What is the best way to create a table from each result set? The data type and schema in the table should be similar to that of the result set.

I know that I can do this to create a table from selection:

  select the table TABLE_NAME * from the users   

So there is a way to select from a stored process execution set ??

Text after "itemprop =" text ">

Although it was mostly included in chat, there may still be an answer for those people Who are thinking about the same thing.

The only way to set more than one result set, and in the context of T-SQL, is through SQLCLR, using C #, VB.Net, or any other Net Language SqlDataReader which will use the result set differently.

The SQLCLR proc is just your existing T exec SQL pr and either sets a single result (assuming an input is the one which must be specified as a result to return to the set) spit out Can or do a different connection and directly insert statement on the phone at the same time to all 4 (though at the time it can be a console app or Windows form or whatever).

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -