Optimized Accessors

OLE DB Programmer's Reference

Row accessors can be optimized. How this is done is provider-specific. It is usually faster to use an optimized accessor than an unoptimized accessor. For example, the provider might structure its internal row buffers to match the types used in the accessor. Optimized row accessors must be created before any rows are fetched.

Flagging accessors as optimized affects only providers that support optimized accessors. In general, providers are not required to recognize optimized accessors nor are they required to enforce any of the restrictions associated with optimized accessors.

Clients written to consume data from general OLE DB providers should never include the same column in more than one optimized accessor, and for all bindings to a particular column, clients should use a data type coercible from the type specified in any optimized accessor for that column.

1998-2001 Microsoft Corporation. All rights reserved.



Microsoft Ole Db 2.0 Programmer's Reference and Data Access SDK
Microsoft OLE DB 2.0 Programmers Reference and Data Access SDK (Microsoft Professional Editions)
ISBN: 0735605904
EAN: 2147483647
Year: 1998
Pages: 1083

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net