Denis Gobo notes that there’s a new CTP for SQL Server:
TRANSLATEThis acts like a bunch of replace statements, instead of REPLACE(REPLACE(REPLACE(REPLACE(SomeVal,'[‘,'(‘),’]’,,’)’),'{‘,'(‘),’}’,,’)’) you can do the following which is much cleanerSELECT TRANSLATE('2*[3+4]/{7-2}', '[]{}', '()()');Running that will return 2*(3+4)/(7-2)
The translate function looks very interesting. Click through for a few more goodies and get ready for the never-ending release cycle.