지금 지원 담당자와 채팅
지원 담당자와 채팅

Toad Edge 2.3 - User Guide

Templates

Templates are script snippets that can be reused in various editors. In Toad Edge, templates can be defined in three contexts:

To configure templates

  1. Go to Preferences (View menu | Preferences or press ALT + P)
  2. Switch to the Templates tab. Here you can add/edit/remove templates

TIP: You can use variables in the code of your templates by typing ${variableName}. If you need to enter a literal dollar symbol, enter two dollar characters in sequence $$.
When a template is used, its variables can be quickly set to specific values. You can also jump between the variables by pressing TAB and SHIFT + TAB.

User Privilege Management

About User Privileges

Toad Edge provides a number of options related to user privileges and how to grant/revoke them. As a general overview, user privileges are granted/revoked on three levels.

  • Server (global level)
  • Database/Schema
  • Database objects (tables, views, routines - procedures and functions)

These levels also represent a hierarchy where privileges on higher level are inherited at lower levels by default.

User privileges can be of several types:

  • Inherited () - the privilege has been granted on higher level and it is not possible to revoke it on the current level
    • Example: User has been granted the CREATE privilege on the server level. It appears as inherited on the database/object levels and cannot be revoked there. It can be granted again on lower levels although this is unnecessary
  • Granted & Inherited () - this privilege has been granted on higher level and also on the current level
    • Example: User has been granted the SELECT privilege on the server level and then again on the database level. It appears as granted & inherited on the database level
  • Granted () - the privilege has been granted on the current level and can be revoked
    • Example: User has been granted the UPDATE privilege on the object level. It appears as granted on the object level, and it can be revoked
  • Revoked (blank value) - the privilege has not been granted on any level
    • Example: User has been revoked the EXECUTE privilege on the database level. It appears as revoked on the object level. It also appears as revoked on the server level as if it were granted on the server level, it could not be revoked on the database level in the first place

The following table describes how privileges set on higher levels affect privileges on the other levels:

Higher level Current level Lower level
Granted Inherited (granted) Inherited (granted)
Revoked Inherited (revoked) Inherited (revoked)
Revoked Granted Inherited (granted)
Granted Granted & Inherited Inherited (granted)

 

User and Object Privilege Views

Toad Edge allows you to examine currently configured privileges from two views:

  • User - displays objects and the privileges the user has to the objects
  • Object - displays users and the privileges the users have to the object

To examine privileges of a user

  1. In Object Explorer, expand the Users node and double-click the user whose privileges you would like to review
  2. Switch to the Privileges tab

To examine privileges of an object

  1. In Object Explorer, locate the object you would like to review (server/database/database object)
  2. Double-click the object to open it in Object Detail
  3. Switch to the Privileges tab
User Detail | Privileges tab
Button Option Description
Modify Privileges Opens a dialog where you can grant/revoke privileges to each individual object
Add Wildcard Pattern Privileges Opens a dialog where you can configure Wildcard patterns privileges
Add Proxy User Privileges Opens a dialog where you can set up Proxy user privileges
Revoke Privileges Revokes the selected privilege for the selected object
Object Detail | Privileges tab
Button Option Description
Modify Privileges Opens a dialog where you can grant/revoke privileges of any user to the object
Open Script in Worksheet Opens the privilege configuration script of the selected user to the object in Worksheet
Open Script Generation Settings Allows you to enable/disable inclusion of inherited privileges in the generated privilege script. When disabled, only granted or granted & inherited privileges will be included
Open User Detail Opens the User Detail of the selected user
Filter Unprivileged Hides users that have not been granted any privileges

 

관련 문서

The document was helpful.

평가 결과 선택

I easily found the information I needed.

평가 결과 선택