Lovericky


How to get column names and column data types of a particular table using T-SQl




Re: Column Name

aquagal


select column_name,data_type

from information_schema.columns

where table_name='myTable'






Re: Column Name

Madhu K Nair

You can also check sp_columns 'yourtablename' or Sys.Columns though best method is

information_schema.columns

Madhu