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. Multiple Select Statement in stored procedure

Multiple Select Statement in stored procedure

Scheduled Pinned Locked Moved ASP.NET
databasecsharpasp-netquestion
3 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.
  • D Offline
    D Offline
    deepseeindeepsy
    wrote on last edited by
    #1

    Sir, In my ASP.NET application I have the dashboard. Number of records needs to be fetched from database into it. Hence,I want to write stored procedure which gives me these records using multiple Select statements. Is it possible to fetch it? If yes how it can be done. Thanx :)

    S 1 Reply Last reply
    0
    • D deepseeindeepsy

      Sir, In my ASP.NET application I have the dashboard. Number of records needs to be fetched from database into it. Hence,I want to write stored procedure which gives me these records using multiple Select statements. Is it possible to fetch it? If yes how it can be done. Thanx :)

      S Offline
      S Offline
      saini arun
      wrote on last edited by
      #2

      Multiple select statements will return as a single datatset having more than one data tables. For example, if the stored procedure is executing 3 select statements, the dataset returned will have three data tables. You can refer them as ds.Tables[0], ds.Tables[1], ds.Tables[3], and so on.

      D 1 Reply Last reply
      0
      • S saini arun

        Multiple select statements will return as a single datatset having more than one data tables. For example, if the stored procedure is executing 3 select statements, the dataset returned will have three data tables. You can refer them as ds.Tables[0], ds.Tables[1], ds.Tables[3], and so on.

        D Offline
        D Offline
        deepseeindeepsy
        wrote on last edited by
        #3

        Thanx boss !!! Its working with minor changes as =ds.Tables[0].Rows[0][0].ToString(); Thanx a lot! :)

        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