Solved

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

Posted on 2008-06-23
5
483 Views
Last Modified: 2010-04-21
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.
0
Comment
Question by:Delta7428
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 75

Expert Comment

by:Aneesh Retnakaran
ID: 21850116
0
 
LVL 60

Accepted Solution

by:
chapmandew earned 500 total points
ID: 21850117
0
 

Author Comment

by:Delta7428
ID: 21851733
Thank you! Can I output the results to a text file?
0
 
LVL 60

Expert Comment

by:chapmandew
ID: 21851805
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
 

Author Closing Comment

by:Delta7428
ID: 31469932
thank you for your quick responses.  You saved the day! ... and the database
0

Featured Post

Comparison of Amazon Drive, Google Drive, OneDrive

What is Best for Backup: Amazon Drive, Google Drive or MS OneDrive? In this free whitepaper we look at their performance, pricing, and platform availability to help you decide which cloud drive is right for your situation. Download and read the results of our testing for free!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Many companies are looking to get out of the datacenter business and to services like Microsoft Azure to provide Infrastructure as a Service (IaaS) solutions for legacy client server workloads, rather than continuing to make capital investments in h…
When it comes to protecting Oracle Database servers and systems, there are a ton of myths out there. Here are the most common.
Video by: Steve
Using examples as well as descriptions, step through each of the common simple join types, explaining differences in syntax, differences in expected outputs and showing how the queries run along with the actual outputs based upon a simple set of dem…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

738 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question