Solved

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

Posted on 2008-06-23
5
478 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
  • 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

CCModeler offers a way to enter basic information like entities, attributes and relationships and export them as yEd or erviz diagram. It also can import existing Access or SQL Server tables with relationships.
Using SQL Scripts we can save all the SQL queries as files that we use very frequently on our database later point of time. This is one of the feature present under SQL Workshop in Oracle Application Express.
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now