Solved

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

Posted on 2011-02-16
2
225 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

There are some very powerful Data Management Views (DMV's) introduced with SQL 2005. The two in particular that we are going to discuss are sys.dm_db_index_usage_stats and sys.dm_db_index_operational_stats.   Recently, I was involved in a discu…
This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

867 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now