PC Review


Reply
Thread Tools Rate Thread

DataReader Field Names

 
 
Paul Ilacqua
Guest
Posts: n/a
 
      11th Aug 2005
Can you enumerate a data readers source fields names in VB.NET 2003 ?

Paul


 
Reply With Quote
 
 
 
 
Paul Ilacqua
Guest
Posts: n/a
 
      11th Aug 2005
I answed my own question sorry for the error.

Do While drSQL.Read()

For i = 0 To drSQL.FieldCount - 1

Console.WriteLine(drSQL.GetName(i) & " - " &
drSQL.GetOrdinal(drSQL.GetName(i)))

Next

Loop


"Paul Ilacqua" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Can you enumerate a data readers source fields names in VB.NET 2003 ?
>
> Paul
>
>



 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing Datareader Columns using column names mavrick_101 Microsoft ASP .NET 3 25th Feb 2010 04:41 PM
Add fixed field in a DataReader Luigi Microsoft ADO .NET 5 11th Dec 2009 04:20 PM
How to display a field value from a DataReader? Shapper Microsoft ASP .NET 1 22nd Apr 2005 07:27 PM
Exporting table field names to Word/Excel (Just Field Names not da =?Utf-8?B?amFtZXNjbGE=?= Microsoft Access 1 7th Oct 2004 03:31 AM
Question: Getting data from a field in a DataReader VB Programmer Microsoft ASP .NET 1 13th Aug 2003 07:35 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:51 AM.