Microsoft KB Archive/184480

From BetaArchive Wiki

Article ID: 184480

Article Last Modified on 8/9/2004



APPLIES TO

  • Microsoft OLE DB Provider for Index Server 2.0
  • Microsoft Visual C++ 5.0 Enterprise Edition



This article was previously published under Q184480

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:

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 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.

REFERENCES

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

220152 Sample: ADOVC1 Simple ADO/VC++ Application



Additional query words: IDXADOVC

Keywords: kbinfo kbdownload kbfile KB184480