I'm smrt, seriously ...

So I'm writing my updater app to fix the image problem I outlined and saw I actually have a problem with the SQL I wrote anyways.  The replace error on an Ntext datatype would still happen, but even if that error wouldn't happen, another problem would have happened.

The problem of nothing actually happening.  I was replacing the same string with itself.  I needed the /image/ to reset the image tag back to the domain root.

The code SHOULD be:

begin tran
Update     subtext_Content
    Set    [text] = replace([text], '<img src="images/', '<img src="/images/')

select * from subtext_Content where [text] like '%<img src="images/%'

Robin Jones Oct 25, 2007 @ 11:10 AM

# 
Love the idea, you still need to dig deeper on the google API though, as the same search on google sometimes shows totally different results!!!

Why hasn't a major search company done something like this before???

konks. Oct 26, 2007 @ 9:10 AM

# 
This breaks if searching for "c#"

Post a Comment

Please add 1 and 1 and type the answer here: