Re: Database access sucks!
You are using the wrong class. You should be using a datareader if you need
a connected resultset. If you read the description of the class right out of
the documentation, it clearly states that datasets are disconnected. There
is no ambiguity here.
I am really impressed with the people in this newsgroup and the effort that
they are making to try to help you. However to be honest it doesn't seem
like you are here to get help... just to complain. I suggest that instead of
wasting everybodies time here, you should go and actually *READ* the
documentation and try to understand it, instead of using Intellisense to
write code.
"Relaxin" wrote:
[color=blue]
> What I need is a connected resultset within the confines of a DataSet.
>
> My database is full of images, and as you could imagine, this is a painful
> process when they are all loaded to the clientside.
>
> Anyone with any knowledge in this area?
>
> "J. Buelna - Houston, TX" <jbuelna-not@microsoft.. .yet.com> wrote in message
> news:OT$wqrb7EH A.3336@TK2MSFTN GP11.phx.gbl...[color=green]
> >
> > "Relaxin" <me@yourhouse.c om> wrote in message
> > news:eP8eDTW7EH A.4028@TK2MSFTN GP15.phx.gbl...[color=darkred]
> >> It is just me or has MS created some of the worst ways to access and
> >> display
> >> data?
> >>
> >> You can use a DataSet, but if you want to sort or filter the data to must
> >> use a DataView which is created from a DataSet.
> >>
> >> But, if you sort by using the Grid (clicking the header) you can no
> >> longer
> >> use the DataSet (or maybe the DataView, if that is what you are using) to
> >> locate the record that the user has selected!!
> >>
> >> You have to write code to get the current position...this should just be
> >> a
> >> property!!
> >>
> >> Also, can someone explain to me why does the FindRows return
> >> DataRowView...w hat can you do with a DataRowView, I haven't figure out a
> >> way
> >> to load this data into a new DataView or a DataSet (if there is a way,
> >> please explain it to me). It seems that the FindRows should have just
> >> return a new DataView!!
> >>
> >> I understand why all of the necessary data access components are broken
> >> out
> >> into many different parts, but why not ALSO build a component that
> >> encompasses all of the components and use that as an "enhanced DataSet"
> >> that
> >> can also be used as a Datasource to the grid and other components.(Thi s
> >> is
> >> something that I have already done for myself.)
> >>
> >> Maybe it's because I'm coming from Borland and expect top notch
> >> development
> >> tools/comopnents...wh ere there VCL Framework and Data Access components
> >> were
> >> THE BEST!!!
> >>
> >> But I had to leave Borland because their management said that they were
> >> killing the Borland C++ Builder (BCB) product about 6 months ago. But,
> >> they
> >> just recently announced that they had a change of heart and will now
> >> support
> >> BCB.
> >> That's a little to flaky for me, so I jumped ship and moved to MS.
> >>
> >> But with what I have seen in VS.NET (C#), I might have to talk my chances
> >> with Borland.
> >>[/color]
> >
> >
> > Hello Relaxin,
> >
> > I'm sorry, I don't have time to go into details. Here are some
> > references:
> >
> > Microsoft® ADO.NET Step by Step
> > http://www.microsoft.com/mspress/books/4825.asp
> >
> > Microsoft® ADO.NET (Core Reference)
> > http://www.microsoft.com/mspress/books/5354.asp
> >
> > Professional ADO.NET
> > http://www.amazon.com/exec/obidos/tg...books&n=507846
> >
> > It would be good to learn and fully understand ADO.NET on an academic
> > level before trying to use it in a commercial project. Unless your
> > employer allows you to learn the as you go.
> >
> > ADO.NET is not perfect, but there was a lot of thought that went into
> > architecting it and rest assured that there is a solution for most of the
> > problems you'll run into.
> >
> > J. Buelna - Houston, TX
> >[/color]
>
>
>[/color]
You are using the wrong class. You should be using a datareader if you need
a connected resultset. If you read the description of the class right out of
the documentation, it clearly states that datasets are disconnected. There
is no ambiguity here.
I am really impressed with the people in this newsgroup and the effort that
they are making to try to help you. However to be honest it doesn't seem
like you are here to get help... just to complain. I suggest that instead of
wasting everybodies time here, you should go and actually *READ* the
documentation and try to understand it, instead of using Intellisense to
write code.
"Relaxin" wrote:
[color=blue]
> What I need is a connected resultset within the confines of a DataSet.
>
> My database is full of images, and as you could imagine, this is a painful
> process when they are all loaded to the clientside.
>
> Anyone with any knowledge in this area?
>
> "J. Buelna - Houston, TX" <jbuelna-not@microsoft.. .yet.com> wrote in message
> news:OT$wqrb7EH A.3336@TK2MSFTN GP11.phx.gbl...[color=green]
> >
> > "Relaxin" <me@yourhouse.c om> wrote in message
> > news:eP8eDTW7EH A.4028@TK2MSFTN GP15.phx.gbl...[color=darkred]
> >> It is just me or has MS created some of the worst ways to access and
> >> display
> >> data?
> >>
> >> You can use a DataSet, but if you want to sort or filter the data to must
> >> use a DataView which is created from a DataSet.
> >>
> >> But, if you sort by using the Grid (clicking the header) you can no
> >> longer
> >> use the DataSet (or maybe the DataView, if that is what you are using) to
> >> locate the record that the user has selected!!
> >>
> >> You have to write code to get the current position...this should just be
> >> a
> >> property!!
> >>
> >> Also, can someone explain to me why does the FindRows return
> >> DataRowView...w hat can you do with a DataRowView, I haven't figure out a
> >> way
> >> to load this data into a new DataView or a DataSet (if there is a way,
> >> please explain it to me). It seems that the FindRows should have just
> >> return a new DataView!!
> >>
> >> I understand why all of the necessary data access components are broken
> >> out
> >> into many different parts, but why not ALSO build a component that
> >> encompasses all of the components and use that as an "enhanced DataSet"
> >> that
> >> can also be used as a Datasource to the grid and other components.(Thi s
> >> is
> >> something that I have already done for myself.)
> >>
> >> Maybe it's because I'm coming from Borland and expect top notch
> >> development
> >> tools/comopnents...wh ere there VCL Framework and Data Access components
> >> were
> >> THE BEST!!!
> >>
> >> But I had to leave Borland because their management said that they were
> >> killing the Borland C++ Builder (BCB) product about 6 months ago. But,
> >> they
> >> just recently announced that they had a change of heart and will now
> >> support
> >> BCB.
> >> That's a little to flaky for me, so I jumped ship and moved to MS.
> >>
> >> But with what I have seen in VS.NET (C#), I might have to talk my chances
> >> with Borland.
> >>[/color]
> >
> >
> > Hello Relaxin,
> >
> > I'm sorry, I don't have time to go into details. Here are some
> > references:
> >
> > Microsoft® ADO.NET Step by Step
> > http://www.microsoft.com/mspress/books/4825.asp
> >
> > Microsoft® ADO.NET (Core Reference)
> > http://www.microsoft.com/mspress/books/5354.asp
> >
> > Professional ADO.NET
> > http://www.amazon.com/exec/obidos/tg...books&n=507846
> >
> > It would be good to learn and fully understand ADO.NET on an academic
> > level before trying to use it in a commercial project. Unless your
> > employer allows you to learn the as you go.
> >
> > ADO.NET is not perfect, but there was a lot of thought that went into
> > architecting it and rest assured that there is a solution for most of the
> > problems you'll run into.
> >
> > J. Buelna - Houston, TX
> >[/color]
>
>
>[/color]
Comment