Created
February 14, 2013 16:54
-
-
Save anonymous/4954211 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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