Solved

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

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

Comprehensive Backup Solutions for Microsoft

Acronis protects the complete Microsoft technology stack: Windows Server, Windows PC, laptop and Surface data; Microsoft business applications; Microsoft Hyper-V; Azure VMs; Microsoft Windows Server 2016; Microsoft Exchange 2016 and SQL Server 2016.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
T-SQL To Select PiD In Two Hobbies 3 39
Need help with a query 4 44
MS SQL 2005 Srink database in chunks 4 41
Grid querry results 41 56
by Mark Wills Attending one of Rob Farley's seminars the other day, I heard the phrase "The Accidental DBA" and fell in love with it. It got me thinking about the plight of the newcomer to SQL Server...  So if you are the accidental DBA, or, simp…
Use this article to create a batch file to backup a Microsoft SQL Server database to a Windows folder.  The folder can be on the local hard drive or on a network share.  This batch file will query the SQL server to get the current date & time and wi…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

759 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

18 Experts available now in Live!

Get 1:1 Help Now