How to check the field's name & data type?

How to check the field's name & data type?

Post by bbq » Fri, 07 Sep 2001 16:56:24

If I use
select * from table1

how can I know rs(0) 's field name & data type?


How to check the field's name & data type?

Post by Vaughan Powel » Fri, 07 Sep 2001 17:56:44



for more properties


Vaughan Powell
Internet Database Architect

Keybright Services Ltd

'Databases for the Internet'

*** Sent via Developersdex ***
Don't just participate in USENET...get rewarded for it!


1. SQL Server 'Text' Data Type Field

text is slow...use varchar

text will always block off that amount of memory no matter how much text is
actually in the field, such as if you allocate 500 characters for the field
the text type always gives you 500 even if the field has 1 character in it

varchar will allocate 1 for 1 character, 2 for 2, etc.

Happy coding


2. ADO methods vs. plain SQL

3. Modify Field's Data Type with VB


5. Change Fields' Data Type

6. Deadlocks Detected

7. type field ''money''

8. UK - Oracle & C skills needed - NOW. Northern Home Counties. EU Applicants welcome.

9. Data Type & field sizes

10. Change data type without no checking to the existing data

11. Money field type same as Currency data type??

12. Data Type transparent to the type of the table field

13. Return ResultSet Including Data, Column Name and Data Type