Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 pick data by removing dot or white-space

Author  Topic 

vinitnri
Starting Member

3 Posts

Posted - 2010-04-28 : 13:11:59
hi experts,
i have a problem in my project, i have a field in table which contains dot(.) and white-spaces. i have to pick data from that field by removing dot(.) and white-spaces. like a filed "E.001" but i want to pick it as "E001".
Please help me to how to do that.

thanks n regards
vinit


vinit k.k.

hanbingl
Aged Yak Warrior

652 Posts

Posted - 2010-04-28 : 13:23:08
[code]REPLACE(REPLACE(COL1,'.',''),' ','')[/code]
Go to Top of Page
   

- Advertisement -