TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
SQL Server Transact Basic to Expert - Replace a portion of string
Karthikeyan Anbarasan
Jun 15, 2011
2.7
k
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
SQL Server Transact Basic to Expert - Replace a portion of string
This blog shows how to replace a portion of the string with a new string in SQL Server
Example:
SELECT REPLACE('This is a sample test string used to replace',
'test',
'text')
Expected result would be "This is a sample text string used to replace"
SQL Server Transact Basic to Expert - Replace a portion of string
Next Recommended Reading
SQL Server Transact Basic to Expert - Stuffing string into a string