SQL-query fails with “Operation must use an updateable query”
This error message will appear when trying to manipulate a file-based Access database whose data files are write protected. An example of this is while running the “Database” Mediator 9-example on Windows Vista.
The solution is to relax the security settings of either the datafile itself, or the folder containing the files. The following guide will tell you how to set the security settings for the Database example to their lowest level on Windows Vista:
- Browse to the folder (default location is C:Program FilesMatchwareMediator 9Examples )
- Rightclick the “Database” folder and choose Properties
- Click the Security tab
- Click the Edit button, and answer “Continue” when prompted for Administrative rights
- Click Add…
- Type “Everyone” (without the quotes) into the name field, and click OK
- Select “Everyone” from the user list, and check “Full control” in the Permissions list.
- Click OK to close the Security window, then OK again to close the property page.
It’s important to notice that this will enable ALL users on the computer to modify the folder, so be careful which folders you enable these settings for. After this is done, your queries should work immediately.