The statement for retrieving the column names from a table in sql server is


Select column1,column2, column3 from tablename where 'here you have to write the referencing conditions..