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

sysquerymatrics

systhresholds

sysattributes

syskeys

sysqueryplans

systypes

syscolumns

syslogs

sysreferences

sysusermessages

syscomments

sysobjects

sysroles

sysusers

sysconstraints

syspartitionkeys

syssegments

sysxtypes

sysdepends

syspartitions

sysslices

sysgams

sysprocedures

sysstatistics

sysindexes

sysprotects

systabstats

Default permissions applies select to public on all system tables, with these exceptions:

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

syscharsets

syslanguages

sysmessages

sysservers

sysconfigures

syslisteners

sysmonitor

syssessions

syscurconfigs

syslocks

sysprocesses

syssrvroles

sysdatabases

syslogin

sysremotelogins

systimeranges

sysdevices

sysloginrole

sysresourcelimits

systransactions

sysengines

syslogshold

syssecmechs

sysusages

The command also makes the following changes: