My data looks like:
ID <--column name
1
Meta <--column name
Is eating chocolate really as bad as they say it is? Learn the surprising new findings on chocolate as they relate to health.
ID <--column name
2
Meta<--column name
Osteoporosis is more common in people with celiac disease. Find out what simple and safe solutions are available.
Here, i have 2 columns named ID
and Meta
. In Meta
column the data(string) contains whitespaces in between. i want to remove it, and should show like below:
ID <--column name
1
Meta <--column name
Is eating chocolate really as bad as they say it is? Learn the surprising new findings on chocolate as they relate to health.
ID <--column name
2
Meta<--column name
Osteoporosis is more common in people with celiac disease.Find out what simple and safe solutions are available.
I've tried Replace
function but it is not working and also this below script :
Declare @InputStr varchar(8000)
declare @ResultStr varchar(8000)
set @ResultStr = (select top 2 Meta from MetaTags)
Print @ResultStr
while charindex('', @ResultStr) > 0
set @ResultStr = replace(@InputStr, ' ', ' ')
Print @ResultStr
But no luck.
Help.!! Thanks