Results 1 to 5 of 5

Thread: Recordsets in .NET

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Aug 2001
    Location
    India
    Posts
    203

    Recordsets in .NET

    All the tutorials and stuff that I read on ADO.NET use DataSets and DataTables and the like...but I think I discovered that Recordsets are stil supported in .NET (??) ...so when is it ideal to use a recordset in ADO.NET ??....or can it just be done without and the people who still use it do so because they're ADO programmers who love their RS ??

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    Well, I havent' used a recordset yet... didn't know they still had support for it in .Net, but anyway, it would be for backward-compatibility.

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    Recordsets are not supported in ADO.NET. The closest thing to a recordset is the DataTable which is in a DataSet. Besides, DataSets & DataTables are way cooler than Recordset.... more flexible, more functionality and provides a great way to lump related data together (even if they are from different sources.)


    Tg

    Added Note: Recordset can still be used, IF you use ADO.....that being the old "classic" ADO.
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170
    You can set a reference to MSADOXX.DLL in your project, and use ADODB.whatever as you did in VB6.

    You should have your reasons for doing this, though. I was doubtful about datasets and datareaders at first, but I later realized that they are a good thing.

  5. #5
    Hyperactive Member
    Join Date
    Mar 2004
    Location
    Prato - Tuscany - Italy
    Posts
    461
    I currently use ADO and recordset in VB.NET. I choosed this way because I wanted to be free to use pessimistich locking, that is not supported by ADO.NET. Recordset are very easy to use, also. I think it's possible to use DAO, too, in VB.NET, but I'm not sure about this. The bad thing is: using ADO in VB.NET you are with a foot in the past and with other foot in the present! Anyway it works greatly, but if could restart my project now, I'd change my choice and I'd use ADO.NET and its instruments, in order to be aligned with the whole community and to become experienced of that Object.
    Live long and prosper (Mr. Spock)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width