I have a contact number field which stores number as countrycode + ' ' + phonenumber.. Now i want to strip leading zeroes from phone number
I tried using
UPDATE [dbo].[User]
SET PhoneNumber = REPLACE(LTRIM(REPLACE([PhoneNumber], '0', ' ')), ' ', '0')
but this replaces the space in between with '0'
Any suggestions?