Can I set up a primary key on a dataset after it has been populated - like
after the query has been run? I'm trying to do a look up on a dataset, but I
believe that using the find method is more efficient than looping thru the
dataset. Is this correct? Generally speaking?

--
Regards,
Alvin Bruney
Got DotNet? Get it here
http://home.networkip.net/dotnet/tidbits/default.htm

Re: Efficient find in dataset by Miha

Miha
Thu Dec 18 12:37:07 CST 2003

Hi Alvin,

"Alvin Bruney" <vapor at steaming post office> wrote in message
news:%23djjbNZxDHA.1932@TK2MSFTNGP09.phx.gbl...
> Can I set up a primary key on a dataset after it has been populated - like
> after the query has been run?

Certainly yes.

I'm trying to do a look up on a dataset, but I
> believe that using the find method is more efficient than looping thru the
> dataset. Is this correct? Generally speaking?

Oh yes. :)

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com



Re: Efficient find in dataset by Alvin

Alvin
Thu Dec 18 13:08:04 CST 2003

thanks

--
Regards,
Alvin Bruney
Got DotNet? Get it here
http://home.networkip.net/dotnet/tidbits/default.htm
"Miha Markic" <miha at rthand com> wrote in message
news:uV2hxXZxDHA.3208@tk2msftngp13.phx.gbl...
> Hi Alvin,
>
> "Alvin Bruney" <vapor at steaming post office> wrote in message
> news:%23djjbNZxDHA.1932@TK2MSFTNGP09.phx.gbl...
> > Can I set up a primary key on a dataset after it has been populated -
like
> > after the query has been run?
>
> Certainly yes.
>
> I'm trying to do a look up on a dataset, but I
> > believe that using the find method is more efficient than looping thru
the
> > dataset. Is this correct? Generally speaking?
>
> Oh yes. :)
>
> --
> Miha Markic - RightHand .NET consulting & development
> miha at rthand com
>
>