954,566 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

Search/Replace

Hello,

Does anybody know if there is a Search Replace function in MS SQL2005 to lets say search for the @ charter and replace it with another character or number in the specified columns? If there is please can you give me a sample. I found the replace function but it doesn't seem to search....Thanks any help is appreciated.

ChrisPaul
Newbie Poster
8 posts since Dec 2008
Reputation Points: 10
Solved Threads: 0
 
UPDATE tablename set columnname = REPLACE(coulmnname,'old','new')
where columnname like '%old%'

Something like this...perhaps

lighthead
Junior Poster in Training
64 posts since Jan 2008
Reputation Points: 72
Solved Threads: 15
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You