﻿-- =============================================
-- Author:		<Author,,Name>
-- Create date: <Create Date, ,>
-- Description:	<Description, ,>
-- =============================================
CREATE FUNCTION [dbo].[ott_quote]
(
	@txt as nvarchar(max)
)
RETURNS nvarchar(max)
AS
BEGIN
	DECLARE @res nvarchar(max);

	SET @res = CHAR(34) + REPLACE(ISNULL(@txt,''), CHAR(34), CHAR(34) + CHAR(34)) + CHAR(34);

	RETURN @res;

END