Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

Replace non-breaking space in sql field

Posted on 2009-04-07
2
2,997 Views
Last Modified: 2012-05-06
I have SSN's in a field that have a ascii character 160 in front of them which is a non-breaking space.  I tried teh Ltrim and replace but it seems not to have a effect how can I get ride of this space.
0
Comment
Question by:kdeutsch
2 Comments
 
LVL 12

Accepted Solution

by:
udaya kumar laligondla earned 125 total points
ID: 24087931
use  LTrim(RTrim(replace(FieldName,Char(160), ' ') ))
0
 

Author Closing Comment

by:kdeutsch
ID: 31567539
Works great thanks
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Upgrading my SSIS package in VS 2012 6 59
Check ALL SP in database make sure there are no errors 17 43
Amazon RDS migrate to SQL Server 3 24
Row insertion failed. Array 5 46
Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
For both online and offline retail, the cross-channel business is the most recent pattern in the B2C trade space.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how to use the INSERT statement to insert data into their tables. It will also introduce the NULL statement, to show them what happens when no value is giving for any given column.

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question