Click here to Skip to main content
15,914,452 members
Home / Discussions / C#
   

C#

 
GeneralRe: check if file exists with wild char in file name Pin
lune1216-Sep-08 2:58
lune1216-Sep-08 2:58 
QuestionDatagridview & Email Pin
Chrispie12316-Sep-08 1:27
Chrispie12316-Sep-08 1:27 
GeneralRe: Datagridview & Email Pin
nelsonpaixao16-Sep-08 14:18
nelsonpaixao16-Sep-08 14:18 
QuestionDesign-time databound property Pin
Besoc16-Sep-08 0:51
Besoc16-Sep-08 0:51 
AnswerRe: Design-time databound property Pin
dojohansen16-Sep-08 2:49
dojohansen16-Sep-08 2:49 
GeneralRe: Design-time databound property Pin
Besoc16-Sep-08 4:15
Besoc16-Sep-08 4:15 
QuestionSelect Column Names Pin
omlac16-Sep-08 0:34
omlac16-Sep-08 0:34 
AnswerRe: Select Column Names Pin
dojohansen16-Sep-08 2:41
dojohansen16-Sep-08 2:41 
Your question is rather incomplete.

From your code it seems you'd like to get the column names of a result set from an open data reader. Whether or not you can do that depends on the reader implementation (there's nothing in the IDataReader interface for it). Check the documentation.

In any case, why would you WANT to get it from the reader!? You should presumably know what data you're getting!?

Depending on the database you might be able to use the INFORMATION_SCHEMA built-in views:

SELECT * FROM [INFORMATION_SCHEMA].[COLUMNS] WHERE [TABLE_NAME] = 'MY_TABLE';

Or you might use a data adapter instead of the reader directly (though it uses a reader internally, so it apparently has a way of getting schema information from the reader!).

Or you might rephrase your question...
QuestionSound Device Properties Pin
jam198216-Sep-08 0:19
jam198216-Sep-08 0:19 
QuestionRegarding Sharepoint Text message Pin
manju#12316-Sep-08 0:13
manju#12316-Sep-08 0:13 
QuestionMemory usage problem Pin
stancrm15-Sep-08 22:59
stancrm15-Sep-08 22:59 
AnswerRe: Memory usage problem Pin
Harvey Saayman15-Sep-08 23:29
Harvey Saayman15-Sep-08 23:29 
GeneralRe: Memory usage problem Pin
Dave Kreskowiak16-Sep-08 2:02
mveDave Kreskowiak16-Sep-08 2:02 
AnswerRe: Memory usage problem Pin
DaveyM6915-Sep-08 23:44
professionalDaveyM6915-Sep-08 23:44 
AnswerRe: Memory usage problem Pin
Frank Horn16-Sep-08 0:12
Frank Horn16-Sep-08 0:12 
AnswerRe: Memory usage problem Pin
Dave Kreskowiak16-Sep-08 2:06
mveDave Kreskowiak16-Sep-08 2:06 
GeneralRe: Memory usage problem Pin
Dan Neely16-Sep-08 2:12
Dan Neely16-Sep-08 2:12 
QuestionWhy is like that ? [modified] Pin
Mogaambo15-Sep-08 22:35
Mogaambo15-Sep-08 22:35 
AnswerRe: Why is like that ? Pin
N a v a n e e t h15-Sep-08 22:45
N a v a n e e t h15-Sep-08 22:45 
GeneralRe: Why is like that ? Pin
Mogaambo15-Sep-08 23:02
Mogaambo15-Sep-08 23:02 
GeneralRe: Why is like that ? Pin
DaveyM6915-Sep-08 23:23
professionalDaveyM6915-Sep-08 23:23 
GeneralRe: Why is like that ? Pin
Mogaambo15-Sep-08 23:42
Mogaambo15-Sep-08 23:42 
GeneralRe: Why is like that ? Pin
DaveyM6916-Sep-08 0:06
professionalDaveyM6916-Sep-08 0:06 
AnswerRe: Why is like that ? Pin
dojohansen16-Sep-08 2:55
dojohansen16-Sep-08 2:55 
Questionrichtextbox 's DetectUrls property Pin
Lim Yuxuan15-Sep-08 22:22
Lim Yuxuan15-Sep-08 22:22 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.