mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
35 lines
975 B
Transact-SQL
35 lines
975 B
Transact-SQL
-- ================================================
|
|
-- Template generated from Template Explorer using:
|
|
-- Create Inline Function (New Menu).SQL
|
|
--
|
|
-- Use the Specify Values for Template Parameters
|
|
-- command (Ctrl-Shift-M) to fill in the parameter
|
|
-- values below.
|
|
--
|
|
-- This block of comments will not be included in
|
|
-- the definition of the function.
|
|
-- ================================================
|
|
SET ANSI_NULLS ON
|
|
GO
|
|
SET QUOTED_IDENTIFIER ON
|
|
GO
|
|
-- =============================================
|
|
-- Author: <Author,,Name>
|
|
-- Create date: <Create Date,,>
|
|
-- Description: <Description,,>
|
|
-- =============================================
|
|
CREATE FUNCTION <Inline_Function_Name, sysname, FunctionName>
|
|
(
|
|
-- Add the parameters for the function here
|
|
<@param1, sysname, @p1> <Data_Type_For_Param1, , int>,
|
|
<@param2, sysname, @p2> <Data_Type_For_Param2, , char>
|
|
)
|
|
RETURNS TABLE
|
|
AS
|
|
RETURN
|
|
(
|
|
-- Add the SELECT statement with parameter references here
|
|
SELECT 0
|
|
)
|
|
GO
|