Article View: borland.public.cppbuilder.database.ado
Article #2332Re: Sorting a Table with out an index or primary keys
From: Viatcheslav V. Vassiliev
Date: Sun, 24 Aug 2003 08:11
Date: Sun, 24 Aug 2003 08:11
49 lines
2094 bytes
2094 bytes
SELECT * FROM [Student_Information] ORDER BY [Last], [First] ---------------------------------------------------------------- Regards, Viatcheslav V. Vassiliev http://www.oledbdirect.com The fastest way to access MS SQL Server, MS Jet (MS Access) and Interbase (through OLEDB) databases. "Lee" <gobroski@elltel.net> �������/�������� � �������� ���������: news:3f470a43@newsgroups.borland.com... > I have created an Access Database using OLE automation. In that database, I > have created some tables with this line of code: > > > > Query->SQL->Text = "CREATE TABLE Student_Information([SID] Int,[Last] > VarChar(15),[First] VarChar(15))"; > > Query->ExecSQL(); > > > > I know I am missing my Index declarations, but I don't want any. The data I > am entering could and probably will have duplicates. I need to sort this > Table ascending by last name then first name. > > > > I keep getting the message Query: Missing SQL Property. > > > Any ideas? > > > > Thanks, > > > > Lee > > > > >
Technical Details
Message-ID:
<3f487328@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mailReferences:
<3f470a43@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: 10698b,b79bb0f9f240487d X-Google-Attributes: gid10698b,public X-Google-ArrivalTime: 2003-08-24 01:21:47 PST From: "Viatcheslav V. Vassiliev" <support@oledbdirect.com> Newsgroups: borland.public.cppbuilder.database.ado References: <3f470a43@newsgroups.borland.com> Subject: Re: Sorting a Table with out an index or primary keys Date: Sun, 24 Aug 2003 12:11:02 +0400 Lines: 51 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 NNTP-Posting-Host: 213.247.201.57 Message-ID: <3f487328@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1061712680 213.247.201.57 (24 Aug 2003 01:11:20 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail