You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes I will need a table variable mapped to a result class. The situation is when I need to insert proc results into a table var because I need it for a join in a larger query.
DECLARE @myTable TABLE (
[Id] intNOT NULL,
[Code] nvarchar(50) NOT NULL
)
INSERT INTO @myTable EXEC [dbo].[MyProc]
In the example above, I need it to generate the @myTable var by inspecting the proc output.
The text was updated successfully, but these errors were encountered:
Sometimes I will need a table variable mapped to a result class. The situation is when I need to insert proc results into a table var because I need it for a join in a larger query.
In the example above, I need it to generate the
@myTable
var by inspecting the proc output.The text was updated successfully, but these errors were encountered: