Re: adSeek equivalent in SQL Server?
- From: "Brendan Reynolds" <brenreyn@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sat, 23 Jul 2005 20:53:14 +0100
You can use criteria on multiple columns when setting the Filter property
....
rst.Filter = "TestText = 'one' AND TestNum = 2"
--
Brendan Reynolds (MVP)
"Sarath" <Sarath@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:DA35277E-A6D9-4665-9676-DE252FBA4710@xxxxxxxxxxxxxxxx
> Thank you Val. But Find method supports only one column . I have a
> composite
> key in which case i guess i have no option but to use Select Query. But i
> what if i need to do Move in the record set. I think it would be more
> expensive to open and close the record set everytime. Am i right?
>
> "Val Mazur (MVP)" wrote:
>
>> Hi,
>>
>> You could use Find method of the recordset, but best approach is to use
>> SELECT with WHERE clause to select specific records rather than to open
>> huge
>> recordset and do a search inside of it. It could be too expensive from
>> the
>> resources point of view and could lock some records.
>>
>> --
>> Val Mazur
>> Microsoft MVP
>>
>> http://xport.mvps.org
>>
>>
>>
>> "Sarath" <Sarath@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
>> news:56A06D33-434F-4586-8609-F0B720FBC84E@xxxxxxxxxxxxxxxx
>> > Is there an equivalent for Seek operation in a recordset in SQLOLEDB
>> > provider? if not how can i seek a record from a record set with out
>> > closing
>> > it everytime.
>> > thanks
>> >
>>
>>
>>
.
- References:
- adSeek equivalent in SQL Server?
- From: Sarath
- Re: adSeek equivalent in SQL Server?
- From: Val Mazur \(MVP\)
- Re: adSeek equivalent in SQL Server?
- From: Sarath
- adSeek equivalent in SQL Server?
- Prev by Date: Re: Copying access objects using .net
- Next by Date: updating data
- Previous by thread: Re: adSeek equivalent in SQL Server?
- Next by thread: updating data
- Index(es):
Relevant Pages
|
|