Posted By

tclancy on 08/19/08


Tagged

db debugging detectivework


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tclancy


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


 / Published in: SQL
 

  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  

You need to login to post a comment.