Microsoft Knowledge Base Email Alertz

(271774) - ADOX.exe demonstrates the use of the Jet OLEDB:Trustee PIN property with the User and Group ADOX objects. These properties are only available when using the Microsoft Jet 4.0 OLE DB Provider.

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: 271774 - Last Review: August 5, 2004 - Revision: 5.5

SAMPLE: How To Manipulate the "Trustee PIN" Jet Property Using ADOX in VC

This article was previously published under Q271774

On This Page

SUMMARY

ADOX.exe demonstrates the use of the Jet OLEDB:Trustee PIN property with the User and Group ADOX objects. These properties are only available when using the Microsoft Jet 4.0 OLE DB Provider.

MORE INFORMATION

The following file is available for download from the Microsoft Download Center:
ADOX.exe (http://download.microsoft.com/download/mdac26/sample/2.6/w9x2k/en-us/adox.exe)
Release Date: October 9, 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. The ADOX.exe file contains the following files:

Collapse this tableExpand this table
File nameSize
EULA.txt2 KB
ADOX.cpp7 KB


Note It is important to connect to an Access 2000 database and point the Jet OLEDB:System database property to its related workgroup information file:
_bstr_t m_Conn("Provider=Microsoft.Jet.OLEDB.4.0; \ 
                Data Source=Access2000DB.mdb;User Id=Admin;Password=; \ 
                Jet OLEDB:System database=system.mdw");
				
In addition, the sample illustrates how to add or delete a user from a group and change the password for a user.

Steps to Run the Sample

  1. Create an empty Win32 console application.
  2. Insert the ADOX.cpp file into the project.
  3. Modify the connection string to point to an Access 2000 database and its related System.mdw file.
  4. Compile and then run the application.
Starting with Microsoft Data Access Components (MDAC) version 2.6, MDAC no longer contains the Jet components: Microsoft Jet, Microsoft Jet OLE DB Provider, and the ODBC Desktop Database Drivers. For additional information, and to download the newest version of Microsoft Jet, click the following article number to view the article in the Microsoft Knowledge Base:
239114  (http://kbalertz.com/Feedback.aspx?kbNumber=239114/ ) How To: Obtain the Latest Service Pack for the Microsoft Jet 4.0 Database Engine
The "MDAC 2.5 Stack and Windows File Protection" white paper contains a full list of the components that are shipped with MDAC 2.5, along with a discussion of Windows File Protection.

APPLIES TO
  • Microsoft Data Access Components 2.6
  • Microsoft OLE DB Provider for Jet 4.0
  • Microsoft ActiveX Data Objects 2.6
Keywords: 
kbdownload kbfile kbhowto kbjet kbsample KB271774
       

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