Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ability to get table var from result class #81

Closed
adamfoneil opened this issue Mar 1, 2023 · 0 comments
Closed

ability to get table var from result class #81

adamfoneil opened this issue Mar 1, 2023 · 0 comments

Comments

@adamfoneil
Copy link
Owner

adamfoneil commented Mar 1, 2023

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] int NOT 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.

adamfoneil added a commit that referenced this issue Mar 1, 2023
adamfoneil added a commit that referenced this issue Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant