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 141313

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T07:45:23+00:00 2026-05-11T07:45:23+00:00

In every ASP.NET application I have written, I would make number of request to

  • 0

In every ASP.NET application I have written, I would make number of request to the database before outputting the information onto the web page.

For example:

var DataTable1 = GetDataTable('Select * From Customers'); var DataTable2 = GetDataTable('Select * From Products'); var DataTable3 = GetDataTable('Select * From Orders'); 

As far as I’m aware, the code above would make 3 separate trips to the database and would do them one after the other.

Is there anyway I can gather together my parameterized SQL statements and make only 1 trip to the database server?

  • 0 0 Answers
  • 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. 2026-05-11T07:45:24+00:00Added an answer on May 11, 2026 at 7:45 am
    var SqlString = 'SELECT * FROM Customers; SELECT * FROM Products; SELECT * FROM ORDERS;'); var ds = GetDataSet(SqlString); var DataTable1 = ds.Tables(0); var DataTable2 = ds.Tables(1); var DataTable3 = ds.Tables(2); 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 62k
  • Answers 62k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer Does cygwin's binary distribution of rsync recognize the ssh command?… May 11, 2026 at 10:10 am
  • added an answer Try: $('#mylist li').length Just curious: why do you need to… May 11, 2026 at 10:10 am
  • added an answer As a side note: You don't really have 2 cases.… May 11, 2026 at 10:10 am

Related Questions

I'd like to make anchors to every post in my asp.net forum. Every forum's
In ASP.NET 3.5 (with IIS6), are AppDomains are created for every request? I know
In asp.net mvc, when do we use: and Do we ever need to put
In every MVC framework I've tried (Rails, Merb, Waves, Spring, and Struts), the idea
In every form we derive from FormBaseControl , we have the following code. I'm
It's something that's bugged me in every language I've used, I have an if
I need to create a trigger in every database on my sql 2005 instance.
What is the most efficient way to enumerate every cell in every sheet in
How do you modify a propertygrid at runtime in every way? I want to
I have a GridView that allows editing the values in every column, in every

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.