SQL Server: Find table.column where column name is LIKE x


/ Published in: SQL
Save to your folder(s)



Copy this code and paste it in your HTML
  1. SELECT sc.[name] AS column_name, so.[name] AS TABLE
  2. FROM syscolumns sc
  3. INNER JOIN sysobjects so ON sc.id=so.id
  4. WHERE sc.[name] LIKE '%x%'

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.