Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 490
  • Last Modified:

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.
0
Delta7428
Asked:
Delta7428
  • 2
  • 2
1 Solution
 
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

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.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now