Forum Moderators: open

Message Too Old, No Replies

how do I get SQL to print 40000 records at a time

         

shaan1980

4:54 pm on Jan 5, 2006 (gmt 0)

10+ Year Member



Can I get a page wise action from SQL to print a certain number of records at a time ?

Nutter

6:44 pm on Jan 6, 2006 (gmt 0)

10+ Year Member



SELECT field FROM table LIMIT 40000

Is that what you're asking? 40,000 seems like a lot to show one one page, I usually do a LIMIT between 5 and 25.

shaan1980

7:02 pm on Jan 6, 2006 (gmt 0)

10+ Year Member



limit doesn't seem to work

I'm querying a sybase database.

my query yields 80000 rows I would like my query to display 40000 at a time

aspdaddy

6:04 pm on Jan 8, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Have you tried:
SET ROWCOUNT 40000

shaan1980

9:38 pm on Jan 14, 2006 (gmt 0)

10+ Year Member



thats not what I am looking for

I want to to be able to see 40000 rows at a time off a 800000 data pull so that I can copy and paste in excel

carguy84

12:17 am on Jan 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



select top 40000
from table
where id > 0
order by id ASC

aspdaddy

1:05 pm on Jan 15, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I dont believe sybase supports top, limit etc. There are various workarounds on the sybase faq's.

Or just do it on the client.