Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace a portion of a string
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01381814
Message ID:
01448410
Views:
33
>>If a field is SQL Server reserved word, you need to use []. You can use it for regular fields as well. In other words, you can use it every time.
>
>Thanks. My issue actually turned out to be because I'm using TEXT field type. Had to cast it do it like
>
>set description=replace(cast(description as varchar(max)),'\',' \')

Should have posted the error then :) Yes, it's better to forget about text type in SQL Server 2005 and up.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform