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:
select * from INFORMATION_SCHEMA.COLUMNS where TABLE_NAME='tableName'
This is better than getting from sys.columns because it shows DATA_TYPE directly.
sys.columns
DATA_TYPE