• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

search all nvarchar columns

How can I search all nvarchar columns in a database for a specific text sting?
0
HLRosenberger
Asked:
HLRosenberger
1 Solution
 
jogosCommented:
Nvarchars only? Don't forget that there could be some loose columns with type varchar, text, ntext?????

If it's one time dynamic sql.  Look for all columns (information_schema.Columns) with your datatype and construct your select with it.
0
 
HLRosenbergerAuthor Commented:
got it.
0

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

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