PC Review


Reply
Thread Tools Rate Thread

Really puzzled (or maybe just totally confused) about VB.NET and ADO.NET

 
 
Sam Malone
Guest
Posts: n/a
 
      22nd May 2006
Am I just totally missing something here? I'm just new to VS.NET 2005
(using VB.NET) and ADO.NET.
I get the impression that ADO.NET can't do what I'm used to doing with ADO
(previous ADO withVB6).
I used to bind (let's say a text box) to a field (column) in a recordset and
if I typed a value in that textbox and tabbed out of it, the value in the
database got updated without me having to do anything else.
Now what I see is a terribly convoluted mish-mash of connections, adapters,
datasets that have to be "filled" etc and then there's the data bindings to
get it so you can just "see" what is in your database (excuse me, data
"source") and then after all of that it doesn't even keep up to date (if
something in the underlying database changes) much less update the database
after all. I have to write the code to do that too!!!!
Keep in mind the very first sentence... Am I missing something here?? OMG I
hope I am.



 
Reply With Quote
 
 
 
 
Scott M.
Guest
Posts: n/a
 
      22nd May 2006
ADO.NET is disconnect by nature as opposed to ADO, which usually worked with
the actual data in the database. So, in ADO.NET you work with a copy of the
data, and when you are ready, you update the original data source with your
copy's changes.

This architecture reduces server load and generally improves the
application's response time (if you are smart about how and when you connect
to the data source).


"Sam Malone" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> Am I just totally missing something here? I'm just new to VS.NET 2005
> (using VB.NET) and ADO.NET.
> I get the impression that ADO.NET can't do what I'm used to doing with ADO
> (previous ADO withVB6).
> I used to bind (let's say a text box) to a field (column) in a recordset
> and if I typed a value in that textbox and tabbed out of it, the value in
> the database got updated without me having to do anything else.
> Now what I see is a terribly convoluted mish-mash of connections,
> adapters, datasets that have to be "filled" etc and then there's the data
> bindings to get it so you can just "see" what is in your database (excuse
> me, data "source") and then after all of that it doesn't even keep up to
> date (if something in the underlying database changes) much less update
> the database after all. I have to write the code to do that too!!!!
> Keep in mind the very first sentence... Am I missing something here?? OMG
> I hope I am.
>
>
>



 
Reply With Quote
 
Sam Malone
Guest
Posts: n/a
 
      22nd May 2006
Cripes. Seems like a MAJOR step backwards to me. People cost way more than
CPU cycles. Oh well, I'm sure my whining won't change M$ attitude. At least
it does show I wasn't as confused as I thought (hoped) I was :-(

"Scott M." <s-(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> ADO.NET is disconnect by nature as opposed to ADO, which usually worked
> with the actual data in the database. So, in ADO.NET you work with a copy
> of the data, and when you are ready, you update the original data source
> with your copy's changes.
>
> This architecture reduces server load and generally improves the
> application's response time (if you are smart about how and when you
> connect to the data source).
>
>
> "Sam Malone" <(E-Mail Removed)> wrote in message
> news:%(E-Mail Removed)...
>> Am I just totally missing something here? I'm just new to VS.NET 2005
>> (using VB.NET) and ADO.NET.
>> I get the impression that ADO.NET can't do what I'm used to doing with
>> ADO (previous ADO withVB6).
>> I used to bind (let's say a text box) to a field (column) in a recordset
>> and if I typed a value in that textbox and tabbed out of it, the value in
>> the database got updated without me having to do anything else.
>> Now what I see is a terribly convoluted mish-mash of connections,
>> adapters, datasets that have to be "filled" etc and then there's the data
>> bindings to get it so you can just "see" what is in your database (excuse
>> me, data "source") and then after all of that it doesn't even keep up to
>> date (if something in the underlying database changes) much less update
>> the database after all. I have to write the code to do that too!!!!
>> Keep in mind the very first sentence... Am I missing something here?? OMG
>> I hope I am.
>>
>>
>>

>
>



 
Reply With Quote
 
Cor Ligthert [MVP]
Guest
Posts: n/a
 
      22nd May 2006
Sam,

If you had to think about an uniform method for a

Connected PC
Mobile device
Not connected mobile PDA device
Endless amounts of active webpage's

Have you any idea how to handle that with a connected recordset?

Cor

"Sam Malone" <(E-Mail Removed)> schreef in bericht
news:%(E-Mail Removed)...
> Am I just totally missing something here? I'm just new to VS.NET 2005
> (using VB.NET) and ADO.NET.
> I get the impression that ADO.NET can't do what I'm used to doing with ADO
> (previous ADO withVB6).
> I used to bind (let's say a text box) to a field (column) in a recordset
> and if I typed a value in that textbox and tabbed out of it, the value in
> the database got updated without me having to do anything else.
> Now what I see is a terribly convoluted mish-mash of connections,
> adapters, datasets that have to be "filled" etc and then there's the data
> bindings to get it so you can just "see" what is in your database (excuse
> me, data "source") and then after all of that it doesn't even keep up to
> date (if something in the underlying database changes) much less update
> the database after all. I have to write the code to do that too!!!!
> Keep in mind the very first sentence... Am I missing something here?? OMG
> I hope I am.
>
>
>



 
Reply With Quote
 
tomb
Guest
Posts: n/a
 
      22nd May 2006
Cor Ligthert [MVP] wrote:

>Sam,
>
>If you had to think about an uniform method for a
>
>Connected PC
>Mobile device
>Not connected mobile PDA device
>Endless amounts of active webpage's
>
>Have you any idea how to handle that with a connected recordset?
>
>Cor
>
>"Sam Malone" <(E-Mail Removed)> schreef in bericht
>news:%(E-Mail Removed)...
>
>
>>Am I just totally missing something here? I'm just new to VS.NET 2005
>>(using VB.NET) and ADO.NET.
>>I get the impression that ADO.NET can't do what I'm used to doing with ADO
>>(previous ADO withVB6).
>>I used to bind (let's say a text box) to a field (column) in a recordset
>>and if I typed a value in that textbox and tabbed out of it, the value in
>>the database got updated without me having to do anything else.
>>Now what I see is a terribly convoluted mish-mash of connections,
>>adapters, datasets that have to be "filled" etc and then there's the data
>>bindings to get it so you can just "see" what is in your database (excuse
>>me, data "source") and then after all of that it doesn't even keep up to
>>date (if something in the underlying database changes) much less update
>>the database after all. I have to write the code to do that too!!!!
>>Keep in mind the very first sentence... Am I missing something here?? OMG
>>I hope I am.
>>
>>
>>
>>
>>

>
>
>
>

I think Sam has an excellent point - as developers we should have a
choice of working in a connected mode or not. In VB 6 we could work
with that recordset object as connected or not. Surely MS could have
given us the option of using ado.net in connected or disconnected mode,
maybe with two different components.

Tom
 
Reply With Quote
 
Scott M.
Guest
Posts: n/a
 
      23rd May 2006
You can work in connected mode in one of two ways:

Read-only, forward-only needs are handled by the ADO.NET DataReader.

If read/write is desired, you can still use the ADO Recordset (if you must),
using COM InterOp.

Give the disconnected paradigm a chance, it is more code, but it results in
MUCH better performance overall.

"tomb" <(E-Mail Removed)> wrote in message
news:Cwhcg.51331$(E-Mail Removed)...
> Cor Ligthert [MVP] wrote:
>
>>Sam,
>>
>>If you had to think about an uniform method for a
>>
>>Connected PC
>>Mobile device
>>Not connected mobile PDA device
>>Endless amounts of active webpage's
>>
>>Have you any idea how to handle that with a connected recordset?
>>
>>Cor
>>
>>"Sam Malone" <(E-Mail Removed)> schreef in bericht
>>news:%(E-Mail Removed)...
>>
>>>Am I just totally missing something here? I'm just new to VS.NET 2005
>>>(using VB.NET) and ADO.NET.
>>>I get the impression that ADO.NET can't do what I'm used to doing with
>>>ADO (previous ADO withVB6).
>>>I used to bind (let's say a text box) to a field (column) in a recordset
>>>and if I typed a value in that textbox and tabbed out of it, the value in
>>>the database got updated without me having to do anything else.
>>>Now what I see is a terribly convoluted mish-mash of connections,
>>>adapters, datasets that have to be "filled" etc and then there's the data
>>>bindings to get it so you can just "see" what is in your database (excuse
>>>me, data "source") and then after all of that it doesn't even keep up to
>>>date (if something in the underlying database changes) much less update
>>>the database after all. I have to write the code to do that too!!!!
>>>Keep in mind the very first sentence... Am I missing something here?? OMG
>>>I hope I am.
>>>
>>>
>>>
>>>

>>
>>
>>

> I think Sam has an excellent point - as developers we should have a choice
> of working in a connected mode or not. In VB 6 we could work with that
> recordset object as connected or not. Surely MS could have given us the
> option of using ado.net in connected or disconnected mode, maybe with two
> different components.
>
> Tom



 
Reply With Quote
 
Sam Malone
Guest
Posts: n/a
 
      23rd May 2006
Thanks. I've been spending the weekend (it's a three day weekend here in
Canada) reading about it and yes I'm going to "give it a chance".


"Scott M." <s-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> You can work in connected mode in one of two ways:
>
> Read-only, forward-only needs are handled by the ADO.NET DataReader.
>
> If read/write is desired, you can still use the ADO Recordset (if you
> must), using COM InterOp.
>
> Give the disconnected paradigm a chance, it is more code, but it results
> in MUCH better performance overall.
>
> "tomb" <(E-Mail Removed)> wrote in message
> news:Cwhcg.51331$(E-Mail Removed)...
>> Cor Ligthert [MVP] wrote:
>>
>>>Sam,
>>>
>>>If you had to think about an uniform method for a
>>>
>>>Connected PC
>>>Mobile device
>>>Not connected mobile PDA device
>>>Endless amounts of active webpage's
>>>
>>>Have you any idea how to handle that with a connected recordset?
>>>
>>>Cor
>>>
>>>"Sam Malone" <(E-Mail Removed)> schreef in bericht
>>>news:%(E-Mail Removed)...
>>>
>>>>Am I just totally missing something here? I'm just new to VS.NET 2005
>>>>(using VB.NET) and ADO.NET.
>>>>I get the impression that ADO.NET can't do what I'm used to doing with
>>>>ADO (previous ADO withVB6).
>>>>I used to bind (let's say a text box) to a field (column) in a recordset
>>>>and if I typed a value in that textbox and tabbed out of it, the value
>>>>in the database got updated without me having to do anything else.
>>>>Now what I see is a terribly convoluted mish-mash of connections,
>>>>adapters, datasets that have to be "filled" etc and then there's the
>>>>data bindings to get it so you can just "see" what is in your database
>>>>(excuse me, data "source") and then after all of that it doesn't even
>>>>keep up to date (if something in the underlying database changes) much
>>>>less update the database after all. I have to write the code to do that
>>>>too!!!!
>>>>Keep in mind the very first sentence... Am I missing something here??
>>>>OMG I hope I am.
>>>>
>>>>
>>>>
>>>>
>>>
>>>
>>>

>> I think Sam has an excellent point - as developers we should have a
>> choice of working in a connected mode or not. In VB 6 we could work with
>> that recordset object as connected or not. Surely MS could have given us
>> the option of using ado.net in connected or disconnected mode, maybe with
>> two different components.
>>
>> Tom

>
>



 
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
Totally Confused Aria Microsoft Access Getting Started 17 8th Jun 2008 08:38 PM
I am totally confused here. Lono2008 Windows Vista Mail 1 21st Feb 2008 06:32 AM
Totally puzzled by query incorrectly summing values Teri Welch Microsoft Access 3 23rd Jul 2007 03:12 PM
Totally puzzled by query incorrectly summing values Teri Welch Microsoft Access Queries 3 23rd Jul 2007 03:12 PM
Re: PUZZLED AND CONFUSED John Smith Microsoft Access Form Coding 1 19th Aug 2004 03:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:30 PM.