Thread View: borland.public.cppbuilder.database.ado
2 messages
2 total messages
Started by Ray Parker
Mon, 05 Feb 2001 20:41
Filter = "ID in (...) " doesn't work....
Author: Ray Parker
Date: Mon, 05 Feb 2001 20:41
Date: Mon, 05 Feb 2001 20:41
9 lines
1369 bytes
1369 bytes
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?
Re: Filter = "ID in (...) " doesn't work....
Author: Mark Guerrieri
Date: Thu, 08 Feb 2001 17:12
Date: Thu, 08 Feb 2001 17:12
36 lines
2159 bytes
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? > >
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads