Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SQL

find all tables with column name

SELECT
  sys.columns.name AS ColumnName,
  tables.name AS TableName
FROM
  sys.columns
JOIN sys.tables ON
  sys.columns.object_id = tables.object_id
WHERE
  sys.columns.name LIKE '%ColumnName%'
Source by chartio.com #
 
PREVIOUS NEXT
Tagged: #find #tables #column
ADD COMMENT
Topic
Name
7+3 =