Hello
>In T-SQL, you can create a temp table/table variable to capture outputted rows.
Please see the example below:
USE [Northwind]
GO
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
CREATE PROCEDURE SelectCustomers
AS
BEGIN
SELECT * FROM Customers
END
GO
EXEC [SelectCustomers]
How can I access here in Transact-SQL, the rows returned by the SelectCustomers stored procedure ?