I have an excel file of 150 columns with specific column headings. In my database,have a table '**ExcelImport** ' with column **ExcelHead** (contains data of column headings which have same name as excel column heading).

```
create table ExcelImport( id int primary key,ExcelHead varchar(max))

insert into ExcelImport values(1,'Role'),(2,'Manager')

```

this table will get data based on another rule. What my requirement is that i need to fetch the only column data from excel which is there in ExcelImport table and insert into another temp table. From the example i need to fetch only 'Role' and 'Manager' excel column and need to insert into temp table.

**Note**: Every time ExcelImport table data will truncated and new values for ExcelHead will be inserted.

Can any one suggest the coding for doing the same??