Link to home
Start Free TrialLog in
Avatar of Dee
DeeFlag for United States of America

asked on

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.
Avatar of Aneesh
Aneesh
Flag of Canada image

ASKER CERTIFIED SOLUTION
Avatar of chapmandew
chapmandew
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Dee

ASKER

Thank you! Can I output the results to a text file?
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.
Avatar of Dee

ASKER

thank you for your quick responses.  You saved the day! ... and the database