🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.database.ado
Article #4864

Re: Incorrect SQL behavior

#4864
From: Arnie Mauer
Date: Thu, 20 Sep 2001 15:29
33 lines
1737 bytes
Hardee,

Don't really know what your problem is, but it's not ADO.  It's up
to SQL Server to process the request.

- Arnie

"Hardee Mahoney" <mahoney@nerdvana.fu.com> wrote in message
news:3BA89961.92374FCA@nerdvana.fu.com...
> Hello,
>
> BCB5 SP1 on NT
>
> I have an ADOConnection to a SQL Server 6.5 database using a Data Link
> File.  I have an ADOQuery associated with that connection with the
> following SQL:
>
> SELECT DISTINCT simple_plantype
> FROM medigap_plantype_xwalk
> ORDER BY simple_plantype
>
> I have a DataSource object and a DBGrid.
>
> The SQL statement returns all rows in the table, completely disregarding
> the DISTINCT keyword.  Has anyone seen this?  Is there anything to fix
> it short of reading all the rows and deduping them in code?
>
> Thanks in advance
>
> Hardee Mahoney
> Washington, DC
>
>
Technical Details
Message-ID: <3baa0b6b_1@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews
References: <3BA89961.92374FCA@nerdvana.fu.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,79563bdbb3a120de
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-09-20 08:45:11 PST
From: "Arnie Mauer" <amauer@vrms.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3BA89961.92374FCA@nerdvana.fu.com>
Subject: Re: Incorrect SQL behavior
Date: Thu, 20 Sep 2001 11:29:46 -0400
Lines: 35
Organization: VRMS
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.50.4522.1200
X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200
NNTP-Posting-Host: 209.140.211.97
Message-ID: <3baa0b6b_1@dnews>
X-Trace: dnews 1000999787 209.140.211.97 (20 Sep 2001 08:29:47 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews