Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2000 Forums
 SQL Server Development (2000)
 Select statement query

Author  Topic 

Vishakha
Starting Member

40 Posts

Posted - 2007-02-01 : 02:17:53
I have a table with around 100000 records and I want to retrieve
1000 records at a time, once I have processed 1000 records, get next set, and continue till I process all the records.
My table has a primary key based on 2 columns,

table structure

col1 int (primarykey, foreign key),
col2 varchar(50) (primary key),
col3,
col4


how can I do this.

khtan
In (Som, Ni, Yak)

17689 Posts

Posted - 2007-02-01 : 02:24:45
Take a look at "Efficient paging of recordsets with T-SQL" here
http://www.sqlteam.com/forums/topic.asp?TOPIC_ID=55210&SearchTerms=Paging


KH

Go to Top of Page
   

- Advertisement -