how to retrive column name alone from db to data table
+1
A:
For a CSV file?
First line of the file should contain column headers.
If you just want the names and you're dealing with an actual database, you can get an empty recordset using a query such as
select * from mytable where 1=2
A better solution, depending on the database you are using, would be to look at the system tables to get this information.
Martin Milan
2010-08-24 10:39:20