Please start any new threads on our new site at We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 deleting strings within sql table field
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Starting Member

9 Posts

Posted - 12/27/2012 :  09:32:13  Show Profile  Reply with Quote
What is the sql required to remove a substring from within a column on the database please?
I have to get it right because I cannot affect the rest of the data in each column.

Flowing Fount of Yak Knowledge

5155 Posts

Posted - 12/27/2012 :  09:40:38  Show Profile  Reply with Quote
Typically one would use STUFF or REPLACE functions for the removal along with CHARINDEX or PATINDEX functions to identify the characters that need to be removed. There are examples on the links on this page
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000