-
Notifications
You must be signed in to change notification settings - Fork 13
SQL Parameters
Tako Lee edited this page Mar 12, 2014
·
34 revisions
-
Fit into one line
Option: fmt151_parameter_list_style = fit_into_one_line, type: TFmtListStyle.
CREATE FUNCTION dbo.Fn_gettoporders(@custid AS INT,@n AS INT, @test AS CHAR) RETURNS TABLE AS RETURN SELECT TOP(@n) * FROM sales.salesorderheader WHERE customerid = @custid ORDER BY totaldue DESC GO
-
Stacked
Option: fmt151_parameter_list_style = stacked, type: TFmtListStyle.
CREATE FUNCTION dbo.Fn_gettoporders( @custid AS INT, @n AS INT, @test AS CHAR) RETURNS TABLE AS <function body> GO