Check whether a table exists in an Access Table & how to set the access permission to access the msysobjects system table

Source: Internet
Author: User

Check whether the Access Table exists

String SQL = "select count (*) from msysobjects where name = 'user table '";

How to Set access permission to access the msysobjects system table

How to Set access permission to access the msysobjects system table
The method is also found on the Internet, but only in English.
By default, access to system tables cannot be directly accessed in the program. A prompt is displayed, indicating that the system table has no permission. The system table can be accessed only after the read permission is set manually.
SQL statement for reading all table names in the Access Database: Select name from msysobjects where flags = 0

1. Open Access

2. Click "Tools" and select "options"

3. On the "View" Page, check the "System Object"

4. Click "OK" to save the settings.

5. Click "Tools" and select "user and group permissions" in "security"

6. Select the "permission" Page

7. Select "table" from the "Object Type" drop-down list"

8. Select the "Administrator" user in "User Name/group name"

9. Select the "msysobjects" table in "Object Name ".

10. Check "read data" in "permission"

11. Click "OK" to save the settings.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.