To TRIM a string in MSSQL you can use the following Userdefinedfunction Snippet.
Sample MSSQL
CREATE FUNCTION dbo.TRIM(@inputString VARCHAR(MAX)) RETURNS VARCHAR(MAX) BEGIN RETURN LTRIM(RTRIM(@inputString)) END
All the Code Snippets and Samples you need
To TRIM a string in MSSQL you can use the following Userdefinedfunction Snippet.
CREATE FUNCTION dbo.TRIM(@inputString VARCHAR(MAX)) RETURNS VARCHAR(MAX) BEGIN RETURN LTRIM(RTRIM(@inputString)) END
You must be logged in to post a comment.
RT @CodeSnippetsNET: TRIM UDF for MSSQL http://t.co/X0UQ25Xhb1 #mssql #sql #code #coding #dev #developer #programming