I'm currently working in an SQL database where a column has trailing spaces.
The spaces in question show up as %20 in the browser url.
I've been able to remove them with a select query but whenever I convert it to an update an set query it doesn't seem to work, any input would be appreciated.
Working select query:
select [dbo].[udf-Str-Strip-Control](identifier)
from [AHDRC].[dbo].[artworks]
Broken update query:
update [AHDRC].[dbo].[artworks]
SET [identifier] = [dbo].[udf-Str-Strip-Control](identifier);
SELECT [identifier]
From [AHDRC].[dbo].[artworks];
I am currently using SQL server management studio [identifier] is a nchar(128)
Apologies if anything is unclear / badly formatted.