The information in this article applies to:
SUMMARYThe Idxadovb.exe sample demonstrates how to use an ActiveX Data Objects (ADO) recordset with the OLE DB Provider for Index Server (MSIDXS) in a Visual Basic application to query Index Server 2.0. MORE INFORMATIONThe following file is available for download from the Microsoft
Download Center. Click the file name below to download the file: Idxadovb.exeFor 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.aspand then click How to use the Microsoft Download Center. Using the Sample FileThis sample lets a user specify a query string, scope, and sort order. The sample shows the filename, path, size and last write-time for all documents in the result set. Results can be sorted by rank (default), filename, path, size or write-time based on the current selection in Sort dialog box.The following code opens an ADO recordset and submits a query to the Index Server using the OLE DB provider:
Run the sample and type the query in the Query text box. Select a scope
(the folder containing the documents to search) and click GO. Either the
search results will be displayed or the "No matches found..." message. The
sample also prints the current SQL statement sent by the application in the
debug (immediate) window in Visual Basic 5.0 IDE.
REFERENCESFor more information on Index Server, refer to Index Server documentation in the Windows NT Option Pack documentation. The chapter "SQL Access to Index Server Data" is the best reference for SQL query syntax for Index Server. Additional query words:
Keywords : kbfile kbOLEDB210 kbGrpVBDB kbGrpMDAC kbDSupport kbADO210sp2 kbMDAC210SP2 |
Last Reviewed: December 20, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |