Re: OLE DB Property Sets and Property Groups
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Wed, 23 May 2007 22:22:32 +0000 (UTC)
Vivekanand (vivekanand_bachche@xxxxxxxxxxxxxxxx) writes:
The consumer allocates an array of DBPROPSET structures and passes this
array to the provider. Now supoose that the consumer calls
ICommandProperties::SetProperties to set some properties. The array of
stuctures it passes to the Provider contains two sets --
DBPROPSET_ROWSET and DBPROPSET_DATASOURCE. Is it valid to pass property
sets from different property groups while setting properties in one
group? Who is resposnsible for checking this validity?
Let me first say that I have never written a provider, only one consumer -
and that was quite thrilling itself.
What I would expect is that the OLE DB checks that the property set is
valid - which DBPROPSET_DATASOURCE can't for ICommandProperties. But if
there is a certain rowset property you don't like, you would have mark
that one invalid. Then again, it may be better to be safe and sorry to
check all properties.
Of course, testing what actually happens can't be that bad idea.
--
Erland Sommarskog, SQL Server MVP, esquel@xxxxxxxxxxxxx
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
.
- References:
- OLE DB Property Sets and Property Groups
- From: Vivekanand
- Re: OLE DB Property Sets and Property Groups
- From: Erland Sommarskog
- Re: OLE DB Property Sets and Property Groups
- From: Vivekanand
- OLE DB Property Sets and Property Groups
- Prev by Date: Re: OLE DB Property Sets and Property Groups
- Next by Date: Re: oledb correlated subquery error
- Previous by thread: Re: OLE DB Property Sets and Property Groups
- Next by thread: RE: OLE DB Property Sets and Property Groups
- Index(es):
Relevant Pages
|
Loading