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
Solved

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

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

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Powershell script 13 115
Addition to SQL for dynamic fields 6 47
ServiceCenter IR Query Expressions 1 40
Database needed for HR files 4 57
This article describes some very basic things about SQL Server filegroups.
Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
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…

829 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