Shows a comparison of using common data access activities against Jet security using the DAO and ADO methods.
While most Access and VB projects that use Jet use the DAO object model, new extensions to ADO make it possible to use ADO instead. This module shows common DAO tasks and then shows the equivalent ADO code.
|
Procedure Name
|
Type
|
Description
|
|
(Declarations)
|
Declarations
|
Declarations and private variables for the modSnippetDAOParity_Security module
|
|
ShowAddUserToGroup_ADO
|
Procedure
|
Shows how to add a user to an existing group using ADO.
|
|
ShowAddUserToGroup_DAO
|
Procedure
|
Shows how to add a user to an existing group using DAO.
|
|
ShowChangePassword_ADO
|
Procedure
|
Shows how to change a user's password using ADO
|
|
ShowChangePassword_DAO
|
Procedure
|
Shows how to change a user's password using DAO
|
|
ShowCreateNewGroup_ADO
|
Procedure
|
Shows how to create a new group using ADO
|
|
ShowCreateNewGroup_DAO
|
Procedure
|
Shows how to create a new group using DAO
|
|
ShowCreateUser_ADO
|
Procedure
|
Shows how to create a new user with ADO.
|
|
ShowCreateUser_DAO
|
Procedure
|
Shows how to create a new user with DAO.
|
|
ShowEncryptDatabase_ADO
|
Procedure
|
Shows how to use ADO to compact a database
|
|
ShowEncryptDatabase_DAO
|
Procedure
|
Shows how to use DAO to compact a database
|
|
ShowOpenDatabaseWithPassword_ADO
|
Procedure
|
Shows how to open a database that is protected with a Database Password using ADO.
|
|
ShowOpenDatabaseWithPassword_DAO
|
Procedure
|
Shows how to open a database that is protected with a Database Password using DAO.
|
|
ShowOpenSecuredDatabase_ADO
|
Procedure
|
Shows how to open a database that is protected with user-level security using ADO.
|
|
ShowOpenSecuredDatabase_DAO
|
Procedure
|
Shows how to open a database that is protected with user-level security using DAO.
|
|
ShowSetDatabasePassword_ADO
|
Procedure
|
Shows how to change the database password using ADO.
Neither ADODB nor ADOX support this functionality, so we use yet another ADO library, called
Microsoft Jet and Replication Objects 2.1 Library (JRO). This file is MSJRO.DLL.
|
|
ShowSetDatabasePassword_DAO
|
Procedure
|
Shows how to change the database password using DAO.
|
|
ShowSetPermissions_ADO
|
Procedure
|
Shows how to set permissions for a user/object pair using ADO.
|
|
ShowSetPermissions_DAO
|
Procedure
|
Shows how to set permissions for a user/object pair using DAO.
|