devxlogo

Retrieving a Large Amount of Data From SQL Server

Retrieving a Large Amount of Data From SQL Server

Question:
I am retrieving around 3000 records from a SQL database into an ASP page. The process is very slow. Will using MTS speed up the execution time? I am using Internet Information Server (IIS) 4.0, Option pack 4.0.

Answer:
No matter what you do, trying to retrieve large amounts of data (3000 records) will be slow. You can marginally improve the performance by bringing MTS in the picture. Then you would need to build a COM component that would actually retrieve the data and send it back to your page. The COM component (built with VB or VC++) would run under a MTS package. You might want to try out other techniques to improve performance. For example, you could “page” your data so that the user sees chunks of it (20 to 100 records) at a time and hits a ‘Next’ or ‘Previous’ button to see other data. Does the user really want to see all 3000 records at the same time?

See also  Professionalism Starts in Your Inbox: Keys to Presenting Your Best Self in Email
devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist