Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQLServer 2005 - Update field after stiping brackets from data

Status
Not open for further replies.

ReportDr00

IS-IT--Management
Mar 2, 2007
194
US
Hello
I have a field that contains data in below format
{FFFFFFFF-0000-0000-0000-000000000463}
{FFFFFFFF-0000-0000-0000-000000000463}
{FFFFFFFF-0000-0000-0000-000000000463}
{FFFFFFFF-0000-0000-0000-000000001576}
{FFFFFFFF-0000-0000-0000-000000001576}
{FFFFFFFF-0000-0000-0000-000000000606}
{FFFFFFFF-0000-0000-0000-000000000850}
{FFFFFFFF-0000-0000-0000-000000000850}
{FFFFFFFF-0000-0000-0000-000000001576}
and i would like to strip { and } from begining and end of the string and store the data.
How can i do this in a query?

Thanks
 
update myTable set NewData = substring(CurrentData,2,len(CurrentData)-1)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top