Description

Properties

Name Value
ANSI Nulls ON

True

Quoted Identifier ON

True

Encrypted

False

Execute As
Null on Null Input

False

Schema Bound

False

Assembly

Parameters

Name Data Type Length Description
(Result) varchar 8000
@text varchar 8000

SQL Script

SET QUOTED_IDENTIFIER, ANSI_NULLS ON
GO

-- MS SQL Trim function
-- Removes leading and trailing white spaces from the supplied
-- text
CREATE FUNCTION dbo.trim(@text varchar(8000))
RETURNS varchar(8000)
BEGIN
 RETURN LTRIM(RTRIM(@text))
END
GO

Depends On

No items found