O'Reilly logo

Essential ADO.NET by Bob Beauchemin

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

2.4. Disconnected Mode and the DataSet

When collecting data for transmission to Web browser or Web service clients, most developers use disconnected mode if the retrieved data can be cached in the middle tier or Web server and reused. This practice eliminates multiple redundant round-trips to the database, trading them for the space on the Web server required to store the data in memory. Storing the data on the Web server can be implemented using the ASP.NET Application, Session, or Cache class, subject to concurrency and memory constraints. The replacement for the ADO's client-side, disconnected Recordset is the DataSet, shown in the next example to illustrate the disconnected mode of data access. The DataSet can manage multiple sets of data ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required