PC Review


Reply
Thread Tools Rate Thread

Enumerating SqlDataReader column name

 
 
A.M
Guest
Posts: n/a
 
      21st May 2004
Hi,

How can I have column names of a SqlDataReader ?

Thanks,
Ali


 
Reply With Quote
 
 
 
 
AlexS
Guest
Posts: n/a
 
      21st May 2004
Hi, A.M.

check SqlDataReader.GetName Method

HTH
Alex

"A.M" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> How can I have column names of a SqlDataReader ?
>
> Thanks,
> Ali
>
>



 
Reply With Quote
 
William Ryan eMVP
Guest
Posts: n/a
 
      22nd May 2004
In addition to Alex's recommendation, you can use the GetSchemeTable method
to get more in depth info about the reader
http://www.knowdotnet.com/articles/schemas2.html This may be more
information than you need but it's there if you need it.

HTH,

Bill

--
W.G. Ryan MVP Windows - Embedded

www.devbuzz.com
www.knowdotnet.com
http://www.msmvps.com/williamryan/
"A.M" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi,
>
> How can I have column names of a SqlDataReader ?
>
> Thanks,
> Ali
>
>



 
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
Cycling thru Access table fields in DotNet and enumerating column definitions. JDMils Microsoft VB .NET 0 10th Sep 2006 04:10 PM
Help. Determine PrimaryKey Column from sqlDataReader =?Utf-8?B?U01TX0Rldl9EZXB0?= Microsoft ADO .NET 1 7th Feb 2006 04:09 PM
Question: SqlDataReader.GetSqlXXXX vs. SqlDataReader.GetXXXX Marlon Microsoft ADO .NET 1 29th Jan 2005 02:53 AM
Question: SqlDataReader.GetSqlXXXX vs. SqlDataReader.GetXXXX Marlon Microsoft Dot NET Framework 1 29th Jan 2005 02:47 AM
Getting the column and table name from an SQLDataReader. Antonio Bruno Microsoft ADO .NET 0 21st Jul 2003 07:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:39 PM.