mirror of
https://github.com/Microsoft/sql-server-samples.git
synced 2025-12-08 14:58:54 +00:00
27 lines
786 B
Transact-SQL
27 lines
786 B
Transact-SQL
-- =========================================================
|
|
-- Create Inline Function Template for Azure SQL Database
|
|
-- =========================================================
|
|
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 AS <column_name, sysname, column_name>
|
|
)
|
|
GO
|