PC Review


Reply
Thread Tools Rate Thread

How to access columns having same name in a datarow

 
 
vish
Guest
Posts: n/a
 
      9th Feb 2007
Hi all,

I know this might look strange at first look, but i am looping thru a
dataset created using to different tables
from database.These two tables have some fields with the same names.

Now i want to use those columns from datarow. How can i get exactly
the same column i want not the othere duplicate one residing in the
datarow?

If you understand it pls reply me.

Thanks in advance,
Vish

 
Reply With Quote
 
 
 
 
=?Utf-8?B?S2VycnkgTW9vcm1hbg==?=
Guest
Posts: n/a
 
      9th Feb 2007
Vish,

Why not use an alias in the Select statement that retrieves the data from
the database?

Kerry Moorman


"vish" wrote:

> Hi all,
>
> I know this might look strange at first look, but i am looping thru a
> dataset created using to different tables
> from database.These two tables have some fields with the same names.
>
> Now i want to use those columns from datarow. How can i get exactly
> the same column i want not the othere duplicate one residing in the
> datarow?
>
> If you understand it pls reply me.
>
> Thanks in advance,
> Vish
>
>

 
Reply With Quote
 
vish
Guest
Posts: n/a
 
      9th Feb 2007
Thanks Kerry,

But actually the requirement is such that i can not use the alias in
the select statement. As i want to use both columns ( that are with
same name ) for different purpose in a code block.

Is it still possible in the programmers world?

Thanks very much for your reply.

Vish

 
Reply With Quote
 
RobinS
Guest
Posts: n/a
 
      10th Feb 2007
Yes, I posted the answer to this in the other newsgroup where you posted
this question.

Robin S.
Ts'i mahnu uterna ot twan ot geifur hingts uto.
-----------------------------------------------
"vish" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Thanks Kerry,
>
> But actually the requirement is such that i can not use the alias in
> the select statement. As i want to use both columns ( that are with
> same name ) for different purpose in a code block.
>
> Is it still possible in the programmers world?
>
> Thanks very much for your reply.
>
> Vish
>



 
Reply With Quote
 
punjab_tom
Guest
Posts: n/a
 
      10th Feb 2007
i wouldn't listen to this dyke she doesn't know what she is talking
about

 
Reply With Quote
 
Bruce W. Darby
Guest
Posts: n/a
 
      10th Feb 2007
And folks should listen to you because..... your a low-life malcontent whose
only goal in life is to rant about how YOU were taken advantage of because
you couldn't follow company policy and keep yer code tight and fast? Give it
up Aaron, you stuck your own foot in your mouth when you signed your name to
your first punjab_tom post. Can't you just keep ONE of your personalities
in control of your miserable life?

"punjab_tom" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>i wouldn't listen to this dyke she doesn't know what she is talking
> about
>



 
Reply With Quote
 
RobinS
Guest
Posts: n/a
 
      10th Feb 2007
LOL. You're still trying to figure out if I'm female or male! What a
goober! You just absolutely crack me up.

Robin S.
King of Russia
------------------------------------------------
"punjab_tom" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
>i wouldn't listen to this dyke she doesn't know what she is talking
> about
>



 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      10th Feb 2007
Punjab,

>i wouldn't listen to this dyke she doesn't know what she is talking
> about
>


I don't know it, but what if RobinS is a dyke.

Maybe in your country it is normal to judge people about their sexual
interest, in my country it is the same as doing that because sombodies
politic, religion or race and is seen as a crime. Therefore please we are a
international newsgroup where there was alomost never any discussion about
religion or politic, we are just busy with our job.

And whatever the sexual interest of RobinS is, he/she does a good job here
to help everybody.

Cor

....


 
Reply With Quote
 
Bruce W. Darby
Guest
Posts: n/a
 
      10th Feb 2007
Here, here, Cor. Could not have said it better myself. Robin has helped a
lot of folks here and I do appreciate that, cause I'm one of them. And not
just because he's appreciated my posts to pujab_aaron. You yourself have
been extremely active in helping folks here and I'm learning a lot about the
language from articles on your website.

Thanks,
Bruce

"Cor Ligthert [MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Punjab,
>
>>i wouldn't listen to this dyke she doesn't know what she is talking
>> about
>>

>
> I don't know it, but what if RobinS is a dyke.
>
> Maybe in your country it is normal to judge people about their sexual
> interest, in my country it is the same as doing that because sombodies
> politic, religion or race and is seen as a crime. Therefore please we are
> a international newsgroup where there was alomost never any discussion
> about religion or politic, we are just busy with our job.
>
> And whatever the sexual interest of RobinS is, he/she does a good job here
> to help everybody.
>
> Cor
>
> ...
>



 
Reply With Quote
 
Kat
Guest
Posts: n/a
 
      10th Feb 2007
I am still looking for an answer to this question, as I do not know what
other newsgroup the question was asked & answered in. Can someone just
answer the question, please?

"vish" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hi all,
>
> I know this might look strange at first look, but i am looping thru a
> dataset created using to different tables
> from database.These two tables have some fields with the same names.
>
> Now i want to use those columns from datarow. How can i get exactly
> the same column i want not the othere duplicate one residing in the
> datarow?
>
> If you understand it pls reply me.
>
> Thanks in advance,
> Vish
>



 
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
How to access columns having same name in a datarow More options vish Microsoft ADO .NET 3 11th Feb 2007 07:37 PM
How to access columns having same name in a datarow More options vish Microsoft Dot NET Framework Forms 1 10th Feb 2007 12:15 AM
How to access columns having same name in a datarow More options vish Microsoft ADO .NET 0 9th Feb 2007 02:57 PM
Checking for columns in a DataRow =?Utf-8?B?cmFuZHkxMjAw?= Microsoft C# .NET 3 14th Aug 2006 02:39 PM
How to get columns value from DataRow while DataTable Looping Kelvin Microsoft C# .NET 1 7th Dec 2004 06:26 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:12 PM.