Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
T-SQL equivalent of StrTran()?
Message
From
01/06/2012 15:28:23
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2005
Miscellaneous
Thread ID:
01545078
Message ID:
01545105
Views:
33
>>>>>Is there a function in SQL Server that works like STRTRAN in VFP? I have the following line in VFP that I need to convert to T-SQL:
>>>>>
>>>>>
>>>>>cString = STRTRAN( cString, '&' + 'amp;', '&' )
>>>>>
>>>>>
>>>>>Any suggestions on how to do it? TIA.
>>>>
>>>>See REPLACE function in BOL
>>>>
>>>>select replace (@cString, '&' + 'amp;', '&' )
>>>
>>>Thank you.
>>
>>Dmitry,
>>
>>Here are all the TSQL string functions. My usual starting point...
>>
>>http://msdn.microsoft.com/en-us/library/ms181984(v=sql.105).aspx
>
>Thank you very much. Very helpful page.

You're welcome.
Previous
Reply
Map
View

Click here to load this message in the networking platform