Return Table Field Names

Strange_Will

Member
Joined
Jan 31, 2006
Messages
14
Programming Experience
1-3
So pretty simple, I want to get all of the field names in the database in the most efficient way... any ideas? Like SQL statement wise?

I guess I could do a select * from table WHERE 0=1 then use a for next for each item in DBRS.FIELDS to get it... any better ways?
 
Depends.... what database are you using... Access? SQL Server? Oracle? Something else?

-tg
 
Back
Top