i have string where i need to convert them into Capital text in required string only i have written query to do this using Charindex it is finding only one how to go for 2nd one i am only finding the 2 nd word through index how to find other words also select UPPER(LEFT(SUBSTRING('AHRQ utilization flag',CHARINDEX(' ','AHRQ utilization flag',0)+1,len('AHRQ utilization flag')),1)) for Example : have a great day my desired out put : Have A Great Day
how to do this one .......suggest me P.V.P.MOhan