🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.vdbase.data.sql
Article #1493

Re: Problem with Order Tag on SQL Tables

#1493
From: Garth Wells
Date: Wed, 17 Dec 1997 00:00
36 lines
1574 bytes
I think you are thinking of the ORDER BY (which acts on a field, not an
index) clause that is optional on the SQL Select Statement.  The
documentation says you can use the USE..ORDER BY with SQL tables.  I can
easily use SELECT tablename ORDER BY fieldname, but I am trying to find a
work around for changing existing code.

BTW, my data tables reside in MS SQL Server 6.5.


Thanks

Ken Mayer <kmayer@corp.borland.com> wrote in article
<3497111B.235C@corp.borland.com>...
> Garth Wells wrote:
> > 
> > The documentation says you can specify the Order Tag on a SQL Table,
but I
> > get the TAG NOT FOUND error every time I try.  I do not think you
should be
> > able to do this and that the documentation is wrong.  Can you confirm
or
> > deny me assertion?
> 
> Don't use the word TAG. Try:
> 
> select * from mytable order tagname
> 
> where "mytable" is the name of the table, and "tagname" is the name of
> the index tag.
> 
> In addition, if you are using the database classes, you don't have to do
> this. You can, instead, select the indexName property for the rowset ...
> 
> Ken
> 
Technical Details
Message-ID: <01bd0a81$ba0ee840$74ffc2d0@wells>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bd0a7b$56007e50$74ffc2d0@wells> <3497111B.235C@corp.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: ff5a1,3ddd9c9af1c9a349
X-Google-Attributes: gidff5a1,public
From: "Garth Wells" <gwells@physix.com>
Subject: Re: Problem with Order Tag on SQL Tables
Date: 1997/12/17
Message-ID: <01bd0a81$ba0ee840$74ffc2d0@wells>
X-Deja-AN: 298853627
References: <01bd0a7b$56007e50$74ffc2d0@wells> <3497111B.235C@corp.borland.com>
Organization: None
Newsgroups: borland.public.vdbase.data.sql