PC Review


Reply
Thread Tools Rate Thread

ADO.NET vs ADO question.

 
 
tascienu@ecoaches.com
Guest
Posts: n/a
 
      17th Aug 2005
ADO used to do simple little things like these:

Dim rs as new RecordSet

' Create new record...
rs.AddNew

' Add Information...
rs("Name")="Tasc"

' Update...
rs.UpdateBatch

' Get new record ID rightaway...
NewID = rs("ID").value

------------------------
Now, how can i do similar in ADO.NET?

Tascien

 
Reply With Quote
 
 
 
 
Patrick Sullivan
Guest
Posts: n/a
 
      17th Aug 2005
No such thing as a recordset in dotnet,.now you have datasets. They seem a
bit more complicated than you wrote in here, in my limited experience.

--

Patrick Sullivan, AA-BA, BA-IT

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> ADO used to do simple little things like these:
>
> Dim rs as new RecordSet
>
> ' Create new record...
> rs.AddNew
>
> ' Add Information...
> rs("Name")="Tasc"
>
> ' Update...
> rs.UpdateBatch
>
> ' Get new record ID rightaway...
> NewID = rs("ID").value
>
> ------------------------
> Now, how can i do similar in ADO.NET?
>
> Tascien
>



 
Reply With Quote
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      17th Aug 2005
First, understand that the only things that ADO and ADO.NET have in common
is the fonts If you keep that in mind and approach the two interfaces
with an open mind you'll be better off.

Both interfaces have connections, commands and ways to fetch data. They both
have ways to update data and clean up after themselves. ADO.NET is far
lighter--it puts more responsibility on your shoulders to provide code to
add, change and remove data from the database. It does not generate this SQL
for you like ADO did. However, Visual Studio has wizards that can help
generate these SQL statements for you if your design is simple.

I suggest you get one of the books (like mine) that walk you through the
process of transitioning to ADO.NET. Mine is specifically targeted to ADO
developers converting to ADO.NET.

hth

--
____________________________________
William (Bill) Vaughn
Author, Mentor, Consultant
Microsoft MVP
www.betav.com/blog/billva
www.betav.com
Please reply only to the newsgroup so that others can benefit.
This posting is provided "AS IS" with no warranties, and confers no rights.
__________________________________

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> ADO used to do simple little things like these:
>
> Dim rs as new RecordSet
>
> ' Create new record...
> rs.AddNew
>
> ' Add Information...
> rs("Name")="Tasc"
>
> ' Update...
> rs.UpdateBatch
>
> ' Get new record ID rightaway...
> NewID = rs("ID").value
>
> ------------------------
> Now, how can i do similar in ADO.NET?
>
> Tascien
>



 
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
Perhaps and off topic question....but could use some help with video question.....I don't need codec help, just a general question. Bret Miller DIY PC 0 13th Oct 2006 12:23 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:35 AM.