Re: Accessing sorted records via VB

From: Keith Kratochvil (sqlguy.back2u_at_comcast.net)
Date: 05/18/04


Date: Tue, 18 May 2004 12:31:37 -0500

Why not include an ORDER BY clause as part of your SELECT statement that retrieves the data from the database? This will make sure that the data is ordered when you process it.

Out of curiosity, what are you doing witih those 2 million rows? That is a lot of data to return to a client!

-- 
Keith
"DB" <daveblair(nospam)@adelphia.net> wrote in message news:2B40A335-3556-4416-9CD0-3652E36DB319@microsoft.com...
> I have an SQL 2000 table with many millions of records.  I would like to process this table sequentially sorted on 2 of the fields in a VB program utilizing ADO connectivity.  While I have an index over these fields, it is not the primary key.  I don't see how to tell VB to use this index as the processing order.
> 
> Thanks for the help :-)


Relevant Pages

  • Re: Concurrency Help
    ... An UPDATE operation with a focused WHERE clause is an atomic operation. ... I want to know if a database, ... > ADO.NET concurrency examples are typically comparing one or more columns ... > 1 would overwrite client 2's changes to the db. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Concurrency Help
    ... The timestamp column is changed whenever ANY data in the row is ... >> An UPDATE operation with a focused WHERE clause is an atomic operation. ... I want to know if a database, ... >>> 1 would overwrite client 2's changes to the db. ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Only showing 20 lines per page...
    ... results to an array and looping through that way. ... retrieves from one table, no other columns are retrieved, and there is no ... WHERE clause." ... database, which will mean less resource use with both database & PHP. ...
    (alt.php)
  • Re: DB Architecture Questions (for joe celko)
    ... So a deck of punch cards or a mag tape is just like an SQL Schema to ... a table has a name in the database. ... OCCURS clause. ... This rule would be enforce by a REFERENCES clause on the Orders table ...
    (microsoft.public.sqlserver.programming)
  • Re: create database fatal error
    ... CREATE DATABASE statement i run the catalog.sql and catproc.sql scripts. ... sysaux datafile ... This clause is optional, as is the DATAFILE clause of the ...
    (comp.databases.oracle.server)