Microsoft Knowledge Base Email Alertz

Seek.exe is a sample that demonstrates how you can use the

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: 258580 - Last Review: August 9, 2004 - Revision: 2.2

SAMPLE: Seek.exe Demonstrates How to Use IRowsetIndex Methods Seek, SetRange, and GetIndexInfo

This article was previously published under Q258580

SUMMARY

Seek.exe is a sample that demonstrates how you can use the Seek(), SetRange(), and GetIndexInfo() methods of the IRowsetIndex interface. Note that this interface is currently only supported by the Jet 4.0 OLE DB provider when it is used with a Microsoft Access 2000 database, and will not work with an earlier version of Access.

To use this sample, you must install Microsoft Visual C++ 6.0 Service Pack 3 because the OLE DB headers that were included with previous versions did not define the IRowsetIndex interface.

This sample uses two accessors: an accessor that you can use with index searches, and another one to retrieve data from the Jet database. In your application, you can use the same accessor for index searching and data retrieval.

MORE INFORMATION

The following file is available for download from the Microsoft Download Center:
Seek.exe (http://download.microsoft.com/download/ole/sample/1/win98/en-us/seek.exe)
Release Date: May 24, 2000

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.
Seek.exe contains the following files:

Collapse this tableExpand this table
FileSize
Accessor.h1 KB
MsJetOleDb.h12 KB
Seek.cpp11 KB
Seek.dsp5 KB
Seek.dsw1 KB
StdAfx.cpp1 KB
StdAfx.h1 KB


You can follow these steps to run this sample:
  1. Open the workspace file (Seek.dsw) in Microsoft Visual C++ 6.0 and compile it.
  2. This sample uses the NWIND.MDB (Northwind database) that is provided with Microsoft Access. Make sure that the format of this database is Access 2000. Modify the path for DBPROP_INIT_DATASOURCE in the function GetDataSourcePropSet() to point to your Northwind database.
  3. Compile and run the program to see a list of names in the console application.
NOTE: The debug version of this program will output any encountered messages to the output window.

REFERENCES

For additional information on how you can use the Seek method, click the article number below to view the article in the Microsoft Knowledge Base:
258576  (http://kbalertz.com/Feedback.aspx?kbNumber=258576/EN-US/ ) Limitations of IRowsetIndex::Seek() Used with Jet database

APPLIES TO
  • Microsoft OLE DB Provider for Jet 4.0
Keywords: 
kbdownload kbdatabase kbfile kbjet kbprovider kbsample KB258580
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