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 on any 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

systransactions

sysconfigures

syslocks

sysresourcelimits

sysusages

syscurconfigs

syslogins

sysservers

sysdatabases

sysmessages

syssessions

sysdevices

sysprocesses

systimeranges

The command also makes the following changes: