Permissions on system tables  Combining grant and revoke statements

Chapter 17: Managing User Permissions

Granting default permissions to system tables and stored procedures

The grant and revoke commands include the default permissions parameter. installmodel or installmaster do not grant default permissions for some system tables (see the table below). Instead, the default permissions on the system tables are assigned when Adaptive Server builds a new database. The partial syntax is:

grant default permissions on system tables
revoke default permissions on system tables

where default permissions on system tables specifies that you grant or revoke the default permissions for the following system tables when you issue it from any database:

sysalternates

sysjars

sysqueryplans

systypes

sysattributes

syskeys

sysreferences

sysusermessages

syscolumns

syslogs

sysroles

sysusers

syscomments

sysobjects

syssegments

sysxtypes

sysconstraints

syspartitions

sysstatistics

sysdepends

sysprocedures

systabstats

sysindexes

sysprotects

systhresholds

default permissions on system tables also makes the following changes:

If you run this command from the master database, default permissions for the following system tables are granted or revoked:

syscharsets

syslanguages

sysremotelogins

sysusages

sysconfigures

syslocks

sysresourcelimits

syscurconfigs

syslogins

sysservers

sysdatabases

sysmessages

systimeranges

sysdevices

sysprocesses

systransactions

The command also makes the following changes:





Copyright © 2005. Sybase Inc. All rights reserved. Combining grant and revoke statements

View this book as PDF