SELECT c.name AS 'ColumnName'
,t.name AS 'TableName'
FROM sys.columns c
JOIN sys.tables t ON c.object_id = t.object_id
WHERE c.name LIKE '%MyName%'
ORDER BY TableName
,ColumnName;
SELECT COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = 'Your Table Name'
ORDER BY COLUMN_NAME
-- IS_NULLABLE returns yes or no depending on null or not null
get a list of table names and field names from SQL
SELECT
TABLE_SCHEMA AS TABLE_SCHEMA
,TABLE_NAME AS TABLE_NAME
,COLUMN_NAME AS COLUMN_NAME
FROM INFORMATION_SCHEMA.COLUMNS
--Where COLUMN_NAME Like '%Put_Your_Comumn_Name_HERE%'
ORDER BY
TABLE_SCHEMA
,TABLE_NAME
,COLUMN_NAME;
/* How to select the column names in SQL*/
SELECT Column_name
FROM INFORMATION_SCHEMA.COLUMNS
WHERE TABLE_NAME = N'your_table_name'
/* Just change the "your_table_name" ↑ to the name of your table */
SELECT name, crdate FROM SYSOBJECTS WHERE xtype = 'U';
-- or
SELECT * FROM INFORMATION_SCHEMA.TABLES
-- or
SELECT * FROM databaseName.INFORMATION_SCHEMA.TABLES;
SELECT COLUMN_NAME AS 'ColumnName'
FROM INFORMATION_SCHEMA.COLUMNS
WHERE
TABLE_NAME LIKE '%assembly_armatureassy_tbl%'
and COLUMN_NAME LIKE '%supplied%'