Microsoft Knowledge Base Email Alertz

(184480) - 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.

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 184480 - Last Review: August 9, 2004 - Revision: 3.2

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

This article was previously published under Q184480

On This Page

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

REFERENCES

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

APPLIES TO
  • Microsoft OLE DB Provider for Index Server 2.0
  • Microsoft Visual C++ 5.0 Enterprise Edition
Keywords: 
kbdownload kbfile kbinfo KB184480
Retired KB ArticleRetired KB Content Disclaimer
This article was written about products for which Microsoft no longer offers support. Therefore, this article is offered "as is" and will no longer be updated.
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate