Using SQL2005
I have an application that was adding zeros to a nvarchar field, we have corrected the applications behavior, but I need to delete these zeros in existing records. I can select the records to update using the following
Select *
From dbo.Contracts
Where dbo.ContractNumber Like ('%O002')
I need to remove the 00 from between the letter O and the number 2 "O002"
I know its a replace statment, but need help with the syntax.
THanks
I have an application that was adding zeros to a nvarchar field, we have corrected the applications behavior, but I need to delete these zeros in existing records. I can select the records to update using the following
Select *
From dbo.Contracts
Where dbo.ContractNumber Like ('%O002')
I need to remove the 00 from between the letter O and the number 2 "O002"
I know its a replace statment, but need help with the syntax.
THanks