Skip to content

Instantly share code, notes, and snippets.

Created February 14, 2013 16:54
Show Gist options
  • Save anonymous/4954211 to your computer and use it in GitHub Desktop.
Save anonymous/4954211 to your computer and use it in GitHub Desktop.
CREATE FUNCTION dbo.InlineTVF
(
@advisorId char(5)
)
RETURNS TABLE
RETURN
SELECT 100 AS demo
GO
CREATE FUNCTION dbo.MultilineTVF
(
@advisorId char(5)
)
RETURNS TABLE
@ReturnTable TABLE
(
demo int
)
AS
BEGIN
INSERT INTO @ReturnTable
SELECT 100 AS demo
RETURN
GO
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment