Solved

query  to delete special charcter from a field in sql server 2005

Posted on 2011-02-16
2
253 Views
Last Modified: 2012-05-11
Hi,

I need to remove plus sign from a field in a table in sql server 2005.
For instance, if the field data is  'abc+def+ghijk 12 May 2008.doc'  and  I need following output
'abc def ghijk 12 May 2008.doc'

Any help would be appreciated
0
Comment
Question by:dsk1234
[X]
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
2 Comments
 
LVL 9

Expert Comment

by:s_chilkury
ID: 34913258
SELECT REPLACE(fieldname, '+', ' ') FROM tablename

0
 
LVL 8

Accepted Solution

by:
rushShah earned 250 total points
ID: 34913273
try this,
UPDATE tableName
SET fieldName= REPLACE(fieldName, '+', ' ')

Open in new window

0

Featured Post

Business Impact of IT Communications

What are the business impacts of how well businesses communicate during an IT incident? Targeting, speed, and transparency all matter. Find out more in this infographic.

Question has a verified solution.

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

This article will describe one method to parse a delimited string into a table of data.   Why would I do that you ask?  Let's say that you need to pass multiple parameters into a stored procedure to search for.  For our sake, we'll say that we wa…
In this article I will describe the Backup & Restore method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…
Attackers love to prey on accounts that have privileges. Reducing privileged accounts and protecting privileged accounts therefore is paramount. Users, groups, and service accounts need to be protected to help protect the entire Active Directory …

738 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