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. Database & SysAdmin
  3. Database
  4. datareader and dataset

datareader and dataset

Scheduled Pinned Locked Moved Database
questionsharepoint
2 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.
  • J Offline
    J Offline
    Jax_qqq
    wrote on last edited by
    #1

    I wanna ask a question bout datareader and dataset. If i execute 1 Sp with 2 queries in it as select * from employee and select * from Company bothe this SP's result i execute in dataset as well as datareader at a time. so what o/p it will show in each -datareader and dataset ?

    JAX

    C 1 Reply Last reply
    0
    • J Jax_qqq

      I wanna ask a question bout datareader and dataset. If i execute 1 Sp with 2 queries in it as select * from employee and select * from Company bothe this SP's result i execute in dataset as well as datareader at a time. so what o/p it will show in each -datareader and dataset ?

      JAX

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Jax_qqq wrote:

      so what o/p it will show in each -datareader and dataset ?

      It will show the same output unless the database changed between runs. DataReader provides a forward only view of the data. The DataSet is a container that is used by a Data Adapter so that the result set can be accessed in a random access within the application.


      Upcoming Scottish Developers events: * UK Security Evangelists On Tour (2nd November, Edinburgh) * Developer Day Scotland: are you interested in speaking or attending? My: Website | Blog

      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