Drop Table #Temp
Create Table #Temp
(
CustomerName varchar(100)
)
Insert into #Temp
values('Ramayanan S/o vicky ratnam')
Select * from #temp
Select UPPER(SUBSTRING(CustomerName, CHARINDEX('/',CustomerName),2)),REPLACE( CustomerName ,
SUBSTRING(CustomerName, CHARINDEX('/',CustomerName),2),
UPPER(SUBSTRING(CustomerName, CHARINDEX('/',CustomerName),2))) from #temp
UPDATE dbo.#Temp
SET CustomerName = REPLACE( CustomerName ,
SUBSTRING(CustomerName, CHARINDEX('/',CustomerName),2),
UPPER(SUBSTRING(CustomerName, CHARINDEX('/',CustomerName),2)));
Select * from #temp