First i written select query with join for retrieving required columns. After that using Top 0 i got the required columns.
Which will come like this,

i dont want any records. but i need the result of only the column names like this,

sample code:
select Top 0 *tablename*.* from my *tablename*
(some joins and where conditions)
tablename => contains dynamic columns (After doing joins)