🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Filter = "ID in (...) " doesn't work....

#5768
From: Mark Guerrieri
Date: Thu, 08 Feb 2001 17:12
36 lines
2159 bytes
The Filter property in an ADO recordset must conform the restrictions set up
by ADO.  Go to http://msdn.microsoft.com/library/psdk/dasdk/mdap0i7m.htm for
details.

ADO doesn't support the IN function in a filter expression; only regualr
operators and LIKE.  Expressions that work in a BDE filter expression may
not work with ADO.  On a client-side cursor, a filter is not a "where
clause" because the filter is applied AFTER all the data has already been
retreived locally.  I'm not sure in server-side cursors perform filtering at
the server or locally, but in general it is more efficient when filtering to
use client-side cursors, which filter VERY fast.

Of course, you could also just add a "where clause" to your select
statement.

Mark Guerrieri
CTO
Creative Marketing Startegies
mguerrieri@cmsgrp.com



"Ray Parker" <rparker@madoff.com> wrote in message
news:3a7f0fe9$1_1@dnews...
> I have a TADOTable created from a view in and SQL7 server db, and I can't
> understand why a simple Filter (where clause) like "ID in (1)" doesn't
work.
> The exact string what I'm using is a legal 'where' clause, but when I set
> 'Filtered' to true, I get the error:
>
> "Arguments are of the wrong type, are out of acceptable range, or are in
> conflict with one another"
>
> Any ideas?
>
>
Technical Details
Message-ID: <3a82d353$1_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!news.stealth.net!feed.textport.net!news.bnb-lp.com!bornews.borland.com!dnews!64.67.69.146
References: <3a7f0fe9$1_1@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10698b,171fb8a98c54c231
X-Google-Attributes: gid10698b,public
X-Google-ArrivalTime: 2001-02-08 09:12:40 PST
From: "Mark Guerrieri" <mguerrieri@cmsgrp.com>
Newsgroups: borland.public.cppbuilder.database.ado
References: <3a7f0fe9$1_1@dnews>
Subject: Re: Filter = "ID in (...) " doesn't work....
Date: Thu, 8 Feb 2001 12:12:09 -0500
Lines: 38
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: 64.67.69.146
Message-ID: <3a82d353$1_1@dnews>
X-Trace: 8 Feb 2001 09:11:47 -0800, 64.67.69.146
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!isdnet!grolier!news.stealth.net!feed.textport.net!news.bnb-lp.com!bornews.borland.com!dnews!64.67.69.146