Home Forums SQL Server 2005 SQL Server 2005 General Discussion Remove Spaces in Columns RE: Remove Spaces in Columns
srikant maurya
Hall of Fame
Points: 3293
More actions
June 8, 2009 at 1:06 am
#1005920
try below sql statment with admin permision
update sc
set sc.name=replace(sc.name,' ', '')
from sys.syscolumns sc,sys.sysobjects so
where so.id=sc.id and so.type ='u' and charindex(' ',sc.name)>0
--and so.name='table_name'