The Idxadovc.exe sample demonstrates how to use an ADO
Recordset with the OLE DB Provider for Index Server (MSIDXS) in a Visual C++
5.0 application to query Index Server 2.0.
The
following file is available for download from the Microsoft Download
Center:
IDXADOVC.EXE
(http://download.microsoft.com/download/ole/sample2/2.0/W9XNT4/EN-US/IDXADOVC.EXE
)
For
additional information about how to download Microsoft Support files, click the
following article number to view the article in the Microsoft Knowledge Base:
119591Â
(http://kbalertz.com/Feedback.aspx?kbNumber=119591/EN-US/
)
How to Obtain Microsoft Support Files from Online Services
Microsoft scanned this file for viruses. Microsoft used the most
current virus-detection software that was available on the date that the file
was posted. The file is stored on security-enhanced servers that help to
prevent any unauthorized changes to the file.
Using the Sample File
The sample uses an ActiveX Data Objects (ADO) command to submit a
query to the Index Server using the MSIDXS OLE DB provider.
Here is
the sample code:
SELECT Filename, Size, Write, Path FROM Scope()
WHERE CONTAINS(\'\"Index and Server\"\') > 0
ORDER BY Rank DESC" );
The sample also displays MSIDXS provider properties. Index Server 2.0
and the MSIDXS OLE DB provider ship with Windows NT 4.0 Option Pack.
For more information on Index Server, refer to Index Server documentation in
Windows NT Option Pack documentation. The chapter "SQL Access to Index Server
Data" is the best reference for SQL query syntax for Index Server.
This sample code is based on the Adovc.exe sample mentioned in the REFERENCES
section.
For more information, please see the following article in
the Microsoft Knowledge Base:
220152Â
(http://kbalertz.com/Feedback.aspx?kbNumber=220152/EN-US/
)
Sample: ADOVC1 Simple ADO/VC++ Application