Idxadovc.exe Index Server, OLE DB & ADO in Visual C++

ID: Q184480


The information in this article applies to:
  • Microsoft OLE DB Provider for Index Server, version 2.0
  • Microsoft Visual C++, 32-bit Enterprise Edition, versions 5.0, 5.0sp1, 5.0sp2, 5.0sp3


SUMMARY

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.


MORE INFORMATION

The following file is available for download from the Microsoft Download Center. Click the file name below to download the file:

IDXADOVC.EXE
For more information about how to download files from the Microsoft Download Center, please visit the Download Center at the following Web address
http://www.microsoft.com/downloads/search.asp
and then click How to use the Microsoft Download Center.

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.


REFERENCES

For more information, please see the following article in the Microsoft Knowledge Base:

Q220152 Sample: ADOVC1 Simple ADO/VC++ Application

Additional query words:

Keywords : kbfile kbADO kbIdxServ kbGrpMDAC kbDSupport oledbProvIndex kbGrpODBC
Version : WINDOWS:2.0,5.0,5.0sp1,5.0sp2,5.0sp3
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: December 14, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.