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. Accessing multiple result sets from a stored procedure

Accessing multiple result sets from a stored procedure

Scheduled Pinned Locked Moved Database
databasequestion
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.
  • R Offline
    R Offline
    Rashmi Deshpande
    wrote on last edited by
    #1

    hi, I am creating a report in SQL Reporting Services 2005. The data is coming from a stored procedure which has multiple select statements (multiple result sets). When I bind the report with the dataset ,I am getting the data only from the first select statement (1st table), whereas I am getting the data from each select statement in the stored procedure. Is there any way to get the data while designing the reports? Thanks in advance.

    D 1 Reply Last reply
    0
    • R Rashmi Deshpande

      hi, I am creating a report in SQL Reporting Services 2005. The data is coming from a stored procedure which has multiple select statements (multiple result sets). When I bind the report with the dataset ,I am getting the data only from the first select statement (1st table), whereas I am getting the data from each select statement in the stored procedure. Is there any way to get the data while designing the reports? Thanks in advance.

      D Offline
      D Offline
      Declan Bright
      wrote on last edited by
      #2

      You can use the DataSet.Load[^] option and pass in a SqlDataReader and it will fill multiple DataTables with the multiple resultsets.

      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