Need to do a string search on all fields on all tables

I need to query all fields of all tables in a SQL database for the string "<script".

Is this possible without specifying each field name, and also without specifying the table name?

I need to do this either from sql server management studio or with a script in VB-6.
Delta7428Asked:
Who is Participating?
 
Aneesh RetnakaranDatabase AdministratorCommented:
0
 
Delta7428Author Commented:
Thank you! Can I output the results to a text file?
0
 
chapmandewCommented:
Sure, right click in your query window in management studio and select "Results To", then select "Results to File"...from there you can run the query and output the results to whatever file you want.
0
 
Delta7428Author Commented:
thank you for your quick responses.  You saved the day! ... and the database
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.