|
Database security helps prevent intruders from accessing the data on your databases or unintentional damage to data by authorized users. By default, security is turned off. Security is enabled on Pervasive.SQL databases through the PCC or by executing an SQL statement.
Note
When turning security on or off, all database connections must be closed. Because SQL Data Manager uses additional connections, you must close all SQL Data Manager windows before attempting to turn security on or off. If you are viewing the contents or properties of any table in the database, then you must close that window before proceeding.
To set database security from within the PCC
Caution
Be sure to specify a password with significant length, at least five characters. Do not leave the password field blank because doing so creates a major security risk for your database.
Click OK when done.
The database is now secured, and a single user named "Master" has been created with the password you specified. Until additional users are created and assigned permissions in the database, only the Master user is permitted to view or update data.
A secure database supports individual users and groups of users who have the same set of permissions. Additional users and groups may be added to the database through the Users namespace node under the database. For more information about adding users and groups, see Working with Groups and Users .
To turn off database security
Caution
Turning off database security deletes all users, groups, and permissions. If you turn security back on, you must re-create all users and groups.
For any data files in your database with Btrieve owner names set, you cannot use PCC to grant access to these files. You must use the GRANT statement with the appropriate owner name. Refer to the SQL Engine Reference for a discussion of the GRANT statement.
To add a new group to the database


Each check box represents a specific permission for a specific table. For example, if you want members of this group to be able to perform SELECT operations on the "Billing" table, click the box on the row labeled "Billing" under the column "Select."
You can also perform the task of creating a group and assigning permissions using the SQL statements CREATE GROUP and GRANT.
To add a new user to the database
Note
If you wish to use groups, you must set up the groups before creating users. You cannot add a user to a group after you have already created the user.

Enter the new user information in the name and password fields and select the group, if any, to which the new user belongs.
Note
Group members do not have individual permissions. Every member of a group has exactly the permissions that have been defined for the group.

Each check box represents a specific permission for a specific table. For example, if you want members of this group to be able to perform SELECT operations on the "Billing" table, click the box on the row labeled "Billing" under the column "Select."
You can also perform the task of creating a user and assigning permissions using the SQL statement GRANT.
To delete a user or group
Note
To delete a group, you must first delete all users in the group. You cannot delete a group that contains users.
To add an existing user to a group
Existing users cannot be directly added to a group. Follow these steps:
|
Chapter contents
Prev topic: Dropping a Table
|