Skip to content

Instantly share code, notes, and snippets.

@shaneis
Created May 15, 2018 17:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shaneis/334d963bea7ad050517898d4daaa95df to your computer and use it in GitHub Desktop.
Save shaneis/334d963bea7ad050517898d4daaa95df to your computer and use it in GitHub Desktop.
First example of result set
EXECUTE dbo.GetHeaders @Id = 6
WITH RESULT SETS (
( -- Header data Set...Why not rename these columns...
HeaderId tinyint NOT NULL,
HeaderCreatedDate date NOT NULL,
HeaderRandomness char(50) NOT NULL
),
( -- Header2 data set...
Header2Id tinyint NOT NULL,
Header2CreatedDate date NOT NULL,
Header2Randomnessness char(52) NOT NULL
)
);
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment