[quoted text, click to view] Barry wrote:
> Jim,
>
> You need use this
>
> SELECT REPLACE(Post,'<br />','vbCrLf') as 'NewPostColumn', * FROM
> Peart3Log
>
> You haven't specified the column as the string to be searched. You've
> told SQL Server to search for the string '<br/>' in the string '<br/>'
> and replace it with 'vbCRLF'.
>
> So really all you're doing essentially is:
>
> Select 'vbCrLf', * From Peart3Log
>
> I presume you don't actually need to update the data in the column -
> this is just for presentation purposes right?
>
>
> HTH
>
> Barry
>
Yea, just for presentation purposes. However, I was thinking of changing
data on an insert in the same manner. I may have to (see note below as
to why).
The problem I've ran into is in developing a web app and how the data is
displayed using <br /> tags and vbCrLf. It has to do with a datalist
control and it's a really frustrating issue. I can't assume those
viewing this group know about asp.net and vb.net so I try not to put any
of that into my questions here (although it would be nice if I could).
The question I posted about this issue on the asp.net group didn't get
any replies so I'm trying to resolve my issue in the 'back end', so to
speak, by changing the data on the insert and select statements instead