|
-
November 3rd, 1999, 10:24 AM
#1
Reading Column Names in VB script
My database is in MS Sql Server 7.0. How can I return the name of the column in a table so that I can use it processing. I have no problems accessing the data using the column names but I would like to have the column name returned instead of the data.
-
November 3rd, 1999, 10:34 AM
#2
Re: Reading Column Names in VB script
the sp_columns system stored procedure returns the column information for all columns of a table.
Execute it ("exec sp_columns 'yourtable'") and find the column namens in the first field of the recordset.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|