PC Review


Reply
Thread Tools Rate Thread

Is ADO.NET actually a COM Object?

 
 
Mark Worsnop
Guest
Posts: n/a
 
      1st Nov 2008
I am finally starting to convert my VB6 project into .Net... I use ADO in the
VB6 project and thought I would do the same in the .Net project. However I
was told that this is really a COM object? Is that true and if so what would
you do? I could rewrite all of the hundreds of database access code, and if
that is the right thing to do, I should probably go that route.

 
Reply With Quote
 
 
 
 
William Vaughn
Guest
Posts: n/a
 
      1st Nov 2008

Ah yes, the ADO used in VB6 is COM-based. One of the real advantages of
migrating to managed code and the .NET Framework is to take advantage of
managed classes and data access providers like ADO.NET. No, I don't suggest
trying to migrate your ADO classic code. While you can call COM classes from
a managed application you have to traverse the COM interop layer that has
any number of issues that will make the process less than efficient (to say
the least). And no, you can't just take your ADO classic code and somehow
morph it to ADO.NET--they just aren't the same or even similar enough to do
this.

I wrote a book on for VB6 developers migrating to ADO.NET. Look for ADO and
ADO.NET Examples and Best Practices for VB Developers.

hth


--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
http://betav.com http://betav.com/blog/billva
(425) 556-9205 (Pacific time)
Hitchhiker's Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________


"Mark Worsnop" <Mark (E-Mail Removed)> wrote in message
news:F4BA5D1B-E15B-44C0-BCB4-(E-Mail Removed)...
>I am finally starting to convert my VB6 project into .Net... I use ADO in
>the
> VB6 project and thought I would do the same in the .Net project. However
> I
> was told that this is really a COM object? Is that true and if so what
> would
> you do? I could rewrite all of the hundreds of database access code, and
> if
> that is the right thing to do, I should probably go that route.
>


 
Reply With Quote
 
Mark Worsnop
Guest
Posts: n/a
 
      2nd Nov 2008
THANK YOU for a great book! I purchased it when I got your post and have not
stopped reading. While this time around I am reading only, next time I will
get the code going too. I will recommend this to everyone!

 
Reply With Quote
 
William \(Bill\) Vaughn
Guest
Posts: n/a
 
      2nd Nov 2008
Thanks. Why not post this review on Amazon?

--
__________________________________________________________________________
William R. Vaughn
President and Founder Beta V Corporation
Author, Mentor, Dad, Grandpa
Microsoft MVP
(425) 556-9205 (Pacific time)
Hitchhiker’s Guide to Visual Studio and SQL Server (7th Edition)
____________________________________________________________________________________________



"Mark Worsnop" <(E-Mail Removed)> wrote in message
news:4CABDE51-D87F-48D8-B18B-(E-Mail Removed)...
> THANK YOU for a great book! I purchased it when I got your post and have
> not
> stopped reading. While this time around I am reading only, next time I
> will
> get the code going too. I will recommend this to everyone!
>

 
Reply With Quote
 
Mark Worsnop
Guest
Posts: n/a
 
      3rd Nov 2008

Happy to help!!

 
Reply With Quote
 
Mark Worsnop
Guest
Posts: n/a
 
      3rd Nov 2008
Bill:
Did you see my other question on OLEDB?
What do you think?
 
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
copy object or export object, can't open object laavista Microsoft Access 5 28th Jun 2009 04:50 AM
Unable to cast COM object of type 'ADODB.RecordsetClass' to classtype 'System.Object[]' matthieu.sarthou@googlemail.com Microsoft VB .NET 20 22nd Feb 2008 04:08 PM
Programmatically detach object in unbound object frame to a bound object frame Haiyan Chen Microsoft Access Form Coding 0 4th Mar 2005 02:51 PM
Programmatically detach object in unbound object frame to a bound object frame Haiyan Chen Microsoft Access Form Coding 0 4th Mar 2005 02:47 PM
Win32_Printer: System.NullReferenceException - Additional information: Object reference not set to an instance of an object. J M Microsoft C# .NET 2 7th Oct 2003 06:16 PM


Features
 

Advertising
 

Newsgroups
 


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