Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 284673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T05:28:42+00:00 2026-05-12T05:28:42+00:00

I am new to .NET 3/3.5 (C#) Programming. It may be simple for you

  • 0

I am new to .NET 3/3.5 (C#) Programming. It may be simple for you but not for me.
I have a task to executing stored procedure from c# application, using command and it returns 3 different data tables proc is already done in sql 2005,but I want to know how to get data in c#. exactly need c# code how to handle data tables form the result set,if result set returns more than one datatable.
Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T05:28:42+00:00Added an answer on May 12, 2026 at 5:28 am

    You can use the SqlDataAdapter.Fill() method to fill a DataSet. This way you can access the multiple result tables using this –

    ds.Tables[0].Rows[0]["Column X"];
    ds.Tables[1].Rows[0]["Column Y"];
    ds.Tables[2].Rows[0]["Column Z"];
    ...
    

    Or, you can use a SqlDataReader (which is faster if you want to process your data in a forward-only fashion). For reading the records of the first result set, you can iterate a while loop and call the SqlDataReader.Read() method.

    while(reader.Read())
    {
        //Process the first result set here.
    }
    

    For fetching the next result set, you call the SqlDataReader.NextResult() method.

    reader.NextResult();
    while(reader.Read())
    {
        //Process the next result set here.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm new to Android & Java programming but have been programming in .NET for
I'm new to using the C#/.NET programming Language and I have created a DataGridView
I'll admit, I am pretty new with ASP .NET programming and I have been
hello I'm new to PHP programming and I migrated from ASP .net to PHP..
I am new to programming. Using C# & ASP.Net, how would I differentiate between
I am relatively new to ASP.NET programming, and web programming in general. We have
I'm relatively new to .NET GUI programming using WinForms (the project I'm working on
I am new to C# and .Net programming, but i am wondering if there
Am new to Asp.Net Programming, Have just started a web project. Am calling a
I am new to programming in vb.net. I have come a long ways in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.