I want to query the name of all columns of a table. I found how to do this in:
But I also need to know:
This SO question is missing the following approach :
-- List down all columns of table 'Logging' select * from sys.all_columns where object_id = OBJECT_ID('Logging')