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 7595755
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T21:45:00+00:00 2026-05-30T21:45:00+00:00

I am using SQL database for storage and my website is in c#, and

  • 0

I am using SQL database for storage and my website is in c#, and both are on the same server.

I have inserted Students Result in a table in DataBase, which have fields like TestType, MAxMarks and MarksObtained.

Now i have to display complete result in one shot so i have to add maxmarks of all test types and marks obtained by students in those tests to display a final result.

My question is,

1) Should I fetch whole table from database and do all calculations in c# class?
or
2) I should do all calculations using t-SQL inside SQL server and then fetch the result?

Which of the above two scenarios is more server friendly? I do not want much load on server as database is huge with various simaltaneous login.

Which should be the ideal best practice in terms of load on server.?

  • 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-30T21:45:02+00:00Added an answer on May 30, 2026 at 9:45 pm

    Do it as part of the query. Let the database do the work in this case. If you have things indexed correctly it shouldn’t be a problem. If you fetch the whole table then you’re going to run out of memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using SQL Server CE database and C# language. I have a table
I have a client/server application that depends on MS SQL database for backend storage,
I am using Sql database and I have indexed some tables. In some tables
I am using a SQL Server database in my current project. I was watching
I'm using a SQL Server database in my program with Linq-to-SQL I'm using this
How to tell using T-SQL whether a SQL server database has the TRUSTWORTHY property
I'm using the Microsoft Sync Framework to synchronize a SQL Server database with a
I have exported a schema from one Oracle database using SQL Developer (tools ->
Is it possible to create an SQL server database backup using c# ADO.net and
If you are using an sql database with a vb.net application, does the user

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.