Your T-SQL code would look roughly like this...
CREATE TABLE #table_temp( column1 int null, column2 varchar(20) null ) /*Your column data types and number of columns would match the columns in the recordset generated by the stored procedure*/ INSERT INTO #table_temp EXEC usp_my_procedure /* Anything you would want to do with the #table_temp would go here. */ DROP TABLE #table_temp
For More Information
- What do you think about this answer? E-mail us at editor@searchDatabase.com with your feedback.
- The Best Microsoft SQL Server Web Links: tips, tutorials, scripts, and more.
- The Best SQL Web Links
- Have a SQL Server tip to offer your fellow DBAs and developers? The best tips submitted will receive a cool prize. Submit your tip today!
- Ask your technical SQL Server questions -- or help out your peers by answering them -- in our live discussion forums.
- Ask the Experts yourself: Our SQL, database design, Oracle, SQL Server, DB2, metadata, object-oriented and data warehousing gurus are waiting to answer your toughest questions.
Dig Deeper on Microsoft SQL Server Installation
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.