Re: OLEDB Provider with SQL Server 2000
- From: Erland Sommarskog <esquel@xxxxxxxxxxxxx>
- Date: Wed, 1 Mar 2006 20:54:11 +0000 (UTC)
Mark (swozz_@xxxxxxxxxxx) writes:
I have read this thread, Max's problem seems to be that SQL will ignore
indexes where it can't reliably estimate the cost of calling the
provider which seems to happen when he is doing joins, as far as I can
tell, SQL should still access the index for simple where clauses on
single tables, for instance...
SELECT * FROM <x> WHERE <col>=<val>
The problem I have is that I can't get SQL to take any interest in my
indexes at all! It doesn't even ask for the INDEXES schema!
I have done some tracing and discovered that SQL asks for a schema that
seems to be undocumented, it has a guid of
C8B52301-5CF3-11CE-ADE5-00AA0044773D and I can't find this anywhere!
I am using the ATL templates (although I wish I hadn't!) and I am starting
to think maybe there is something in the ATL source that stops support for
any schema other than TABLES/COLUMNS and PROVIDER TYPES, or maybe it is
because I am not supporting this mysterious schema!
I will have to admit that I have not tried to write my own provider,
even less trying to expose indexes in it. So the best I could was to
point you to that thread, as I recall Max gave some info on how make
the indexes visible.
But it is quite clear, that this is not a very well-documented area,
and only those for brave minds and time enough to trace what is going on.
--
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:
- Re: OLEDB Provider with SQL Server 2000
- From: Mark
- Re: OLEDB Provider with SQL Server 2000
- Prev by Date: RE: oledb on Windows 2003 Server x64
- Next by Date: Re: Visual FoxPro OLE DB Provider error 0x80040e46 (Unknown)
- Previous by thread: Re: OLEDB Provider with SQL Server 2000
- Next by thread: UPDATE statement on an MDB
- Index(es):
Relevant Pages
|
Loading