Saturday, October 12, 2013

SQL SERVER – TRIM Function to Remove Leading and Trailing Spaces of String

DECLARE @String1 NVARCHAR(MAX)SET @String1 ' String 'SELECT @String1 OriginalStringRTRIM(LTRIM(@String1)) TrimmedValue
GO

No comments:

Post a Comment

Complete Authentication System in ASP.NET Core using JWT

JWT (JSON Web Token) authentication is widely used for securing APIs in modern applications. In this article, we will build a complete authe...