derived column to delete comma (,)

Hello,
I searched everywhere couldn't find out what the CHAR number for the comma.

I've this derived column query in SSIS to strip the commas from the full name.

REPLACE(Full_NAME_Column,", "," ")

John, Doe     to    John Doe


Please help

Thanks
LVL 21
Jason YousefSr. BI DeveloperAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

RiteshShahCommented:
its 44
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
RiteshShahCommented:
BTW, I have one small script on my blog which will show you all ASCII code and its associated character

http://www.sqlhub.com/2009/04/list-of-int-ascii-code-to-character-in.html
0
Jason YousefSr. BI  DeveloperAuthor Commented:
RiteshShah:

cheers and thanks for your reply
still doesn't work for me !

is my expression looks ok?

REPLACE(PAT_NAME_File1,"char(44)"," ")
0
The Five Tenets of the Most Secure Backup

Data loss can hit a business in any number of ways. In reality, companies should expect to lose data at some point. The challenge is having a plan to recover from such an event.

RiteshShahCommented:
declare @t varchar(10)
set @t='sqlhug,com'
select REPLACE(@t,char(44),' ')


0
Jason YousefSr. BI  DeveloperAuthor Commented:
Your example works, but in SSIS expression doesn't work, any clue?
0
Reza RadConsultant, TrainerCommented:
your expression is correct.
what is your problem exactly?
do you read data from a flat file?
I checked this and this removed any comma in column,

let me know your whole problem , maybe there be a better way.
0
Jason YousefSr. BI  DeveloperAuthor Commented:
This actually worked for me.... but thanks anyway for your help

REPLACE(PAT_NAME_File1, "," ,"" )

0
Jason YousefSr. BI  DeveloperAuthor Commented:
Thanks
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Microsoft SQL Server

From novice to tech pro — start learning today.