Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Difference b/w Dataset & Recordset?

Difference b/w Dataset & Recordset?

Scheduled Pinned Locked Moved ASP.NET
question
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    suketh
    wrote on last edited by
    #1

    Hi, please can anyone tell me the diffrences b/w Dataset & Recordset? Thanks, Suketh

    _ 1 Reply Last reply
    0
    • S suketh

      Hi, please can anyone tell me the diffrences b/w Dataset & Recordset? Thanks, Suketh

      _ Offline
      _ Offline
      _AK_
      wrote on last edited by
      #2

      check this[^]

      Best Regards, Apurva Kaushal

      S 1 Reply Last reply
      0
      • _ _AK_

        check this[^]

        Best Regards, Apurva Kaushal

        S Offline
        S Offline
        suketh
        wrote on last edited by
        #3

        thanks Apurva. do u thinkis this statements are correct?? a DataSet will have all the data locally. However, this is both a curse and a blessing. It means all the data will have to be fetched before any work can be done, which may increase latency and memory usage substantially. The Recordset is cached behind the scenes, so there will only be roundtrips to the server when needed to refill the cache. BTW, in .NET the equivalent of a Recordset is the SqlDataReader (or equivalent for datasources other than SQL Server). It can return multiple results, but you have to process them one by one in order. Most of the time a DataReader is the fastest method. if u know more points let me know thanks again Suketh

        _ 1 Reply Last reply
        0
        • S suketh

          thanks Apurva. do u thinkis this statements are correct?? a DataSet will have all the data locally. However, this is both a curse and a blessing. It means all the data will have to be fetched before any work can be done, which may increase latency and memory usage substantially. The Recordset is cached behind the scenes, so there will only be roundtrips to the server when needed to refill the cache. BTW, in .NET the equivalent of a Recordset is the SqlDataReader (or equivalent for datasources other than SQL Server). It can return multiple results, but you have to process them one by one in order. Most of the time a DataReader is the fastest method. if u know more points let me know thanks again Suketh

          _ Offline
          _ Offline
          _AK_
          wrote on last edited by
          #4

          What exactly you want to know? These things are quite correct. Dataset follows a disconnected architecture. Once you get the data from the database you are disconnected. If you again want to update the dataset with the database you again need to get connected and update it. Here[^] you will get the details of ado.net architecture.

          Best Regards, Apurva Kaushal

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups