Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I get result set from SP

Status
Not open for further replies.

essa2000

Programmer
Dec 6, 2000
299
CA
Dears;
I want to have result set from back end means using SP. e.g.
I have 1000 records in a table and I want to fetch 100 records first and then on fressing next button I want to get next 100 ( from 101 to 200 ). To make the performance good.

Pleaes , help me out.

essa2000
 
What is the Front End program? VB? C++? ASP? Access?

How are you connecting to SQL Server? ADO? ODBC? Something else? Terry

"I'm not dumb. I just have a command of thoroughly useless information." - Calvin, of Calvin and Hobbes
 
VB is the front End program.
I am using ADO 2.5

essa2000
 
Check the articles at the following links

Paging: Use ADO, getrows, or a Stored Procedure?

Paging through Records using a Stored Procedure

LISTING 4: Paging Results from a SQL Server Query

You might also find helpful info at these links.

Performance Tuning VB Application for SQL Server

ADO Performance Best Practices
Terry

"I'm not dumb. I just have a command of thoroughly useless information." - Calvin, of Calvin and Hobbes
 
Dear tlbroadbent ;

I got the solution from this Article. It is very helpful.

Paging: Use ADO, getrows, or a Stored Procedure?
Please tell me that what will I do if I have more 200000 records. They used Temp table in stored procedure. That will slow the system.
Please comments.

Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top