[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 277
  • 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

Vote for the Most Valuable Expert

It’s time to recognize experts that go above and beyond with helpful solutions and engagement on site. Choose from the top experts in the Hall of Fame or on the right rail of your favorite topic page. Look for the blue “Nominate” button on their profile to vote.

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