SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
14,149 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Hi,
I want to trim @cotd
so is there any function which can do it.
SELECT LTRIM(RTRIM(R.C.value('@Name','nvarchar(100)')))
FROM @xm.nodes('/test[ fn:lower-case(@cotd) !=""]') AS R(C)
Note that Since SQL Server 2022 you can use TRIM