Its been quite a while since I've run an SQL query and I need a bit of help.
I have a SQL Server database in which I need to do a string find/replace on text content in column "content" in table named "my_table". I'm getting an "invalid object name" error when I try to execute the SQL:
UPDATE dbo.MY_TABLE
SET CONTENT = REPLACE(CONTENT, 'http://123.123.123.123', 'http://www.mysite.com')
WHERE CONTENT LIKE '%http://123.123.123.123%';
The website's html content is stored inside the "my_table" table in a field labeled "Content". I have thousands of instances of the IP address which need to be updated to reflect the new domain name.