how to select a column name from a table in sql server code example Example: get all columns from table sql SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES