Skip to content

Admin Guide

Complete reference for SQL Cor administrators: access control, blacklist management, system settings, execution logs, and maintenance mode.


Who this guide is for

This guide is for users in the Creatio System Administrators role who:

  • Manage who can use SQL Cor and at what level
  • Configure blacklist rules to block dangerous operations
  • Monitor query activity through the audit log
  • Tune system settings (limits, timeouts, retention)
  • Enable maintenance mode during planned downtime

If you are a regular user running queries, see User Guide instead. If you are installing SQL Cor for the first time, start with Installation.


Opening the Administration panel

The Administration panel is accessible only to Creatio System Administrators.

How to open:

  1. From the SQL Terminal page, click the ⚙️ Administration button in the top-right header
  2. The page switches to the Administration panel — your Terminal query is preserved

How to return:

  1. Click SQL Terminal link in the top-left of the header
  2. The page switches back — your query is still in the editor

Administration page layout

The Administration page has three regions:

Sidebar navigation: Clicking a sidebar item switches the main content area without reloading. The active item is highlighted with a colored accent bar.


Tab 1 — Access Control ^access-control

This tab manages who can use SQL Cor and what operations they can perform.

Header dark Header light

Statistics cards (top of tab)

Three cards show a live summary:

CardShows
Active rulesCount of currently active access rules
UsersCount of individual users with access
RolesCount of roles with access

Filters

FilterOptionsPurpose
SearchFree textFilter by subject name or email
CategoryReadOnly / DML / DDLFilter by access level
TypeUser / Group (Role)Filter by subject type
StatusActive / RevokedFilter by rule status

Filters combine — applying multiple narrows results further. Clearing all filters shows all rules.


Access rules table

Each row represents one access rule.

ColumnWhat it shows
SubjectAvatar + Name + Email of the user or role
TypeUser or Group (Role)
CategoryAccess level: ReadOnly / DML / DDL
StatusActive (green) or Revoked (gray strikethrough)
Valid UntilExpiration date, or ”—” if permanent
ActionsContext-dependent buttons (see below)

Action buttons per rule

For Active rules:

ButtonNameWhat it does
🚫RevokeDeactivates the rule — changes Status to Revoked. Rule stays in the table for audit history. User loses access immediately.
🗑️DeletePermanently removes the record from the database. Cannot be undone. Use when you want no trace.

For Revoked rules:

ButtonNameWhat it does
✏️EditOpens the rule dialog pre-filled. Lets you change Valid Until date, access category. Has an Activate button to re-enable the rule.
🗑️DeletePermanently removes the revoked record.

Grant Access dialog

Click + Grant Access (top-right of the table) to open this dialog.

Header dark Header light

Field: Subject type (radio buttons)

OptionEffect
UserAccess granted to one specific person
RoleAccess granted to all current and future members of the role

Field: User / Role dropdown

  • Dynamically loads based on the Subject type selection
  • Search by typing a name
  • For Users: shows name + email
  • For Roles: shows role name

Field: Access Level (radio buttons)

LevelCodeAllowed operations
ReadOnly10SELECT only. Auto-LIMIT injected. Multi-statement queries blocked.
DML20SELECT, INSERT, UPDATE, DELETE
DDL30All DML plus CREATE, ALTER, DROP on non-system tables

Field: Valid Until (date picker)

ValueMeaning
Empty (blank)Permanent access — no expiration
Date selectedAccess automatically deactivates after midnight on this date. Rule stays visible as Revoked.

Field: Comment (text input, optional)

Free text explaining why this access was granted.

Examples:

  • "Q4 financial audit — temp ReadOnly until Dec 31"
  • "Senior DBA — permanent DML for data maintenance"
  • "Migration project — DDL access for 2 weeks"

Dialog buttons

ButtonAction
SaveCreates the rule. User/role gains access immediately. Row appears in the table.
CancelCloses dialog without saving. No changes made.

Validation rules:

  • Subject (User or Role) is required
  • Access Level is required
  • Cannot create a duplicate active rule for the same subject at the same level

Edit rule dialog (Revoked rules only)

Opened via ✏️ Edit on a Revoked rule.

Same fields as Grant Access, but pre-filled. Additional button:

ButtonAction
ActivateRe-enables the rule (sets Status back to Active). Same as creating a new rule for this subject.
SaveSaves changes to Valid Until / Category without activating
CancelCloses without changes

Header dark Header light


Confirm dialogs for destructive actions

Revoking a rule:

“Revoke this access? The user will lose access immediately. The rule will remain visible as revoked.” Buttons: Revoke / Cancel

Deleting a rule:

“Delete this access rule permanently? This cannot be undone.” Buttons: Delete / Cancel


Tab 2 — Blacklist

This tab manages patterns that are always blocked, regardless of who tries to run them or their access level.

Blacklist  dark Blacklist  light

Statistics cards (top of tab)

CardIconShows
System limits🔒 CubeCount of built-in (hardcoded) rules that cannot be changed
Manual rules👤 UserCount of rules you have added
Total📊 LayersTotal of all active blacklist entries

Blacklist table

ColumnWhat it shows
IconObject type icon (table, field, or keyword)
NamePattern name or value
SourceSystem (built-in, locked 🔒) or Manual (admin-created)
TypeTable / Field / Keyword
ReasonDescription shown to users when their query is blocked
ActionsEdit / Delete (System rules have no action buttons)

Examples of built-in System rules:

PatternTypeReason
xp_cmdshellKeywordSQL Server shell — never allowed
pg_read_fileKeywordServer filesystem access
pg_sleepKeywordIntentional DB blocking
pg_terminate_backendKeywordKilling database connections
OPENROWSETKeywordExternal data source access
DROP DATABASEKeywordCatastrophic data loss
DnSql* tablesTableSQL Cor’s own configuration tables

Add Rule dialog ^add-rule

Click + Add Rule (top-right of the table) to open this dialog.

Blacklist  dark Blacklist  light

Field: Record type (radio buttons)

OptionUse when you want to block
TableAccess to an entire table (any query touching it)
FieldA specific column in a specific table
KeywordA SQL keyword or function name

Field: Value (text input)

The specific name to block.

TypeExample valueEffect
TableSysUserBlocks any query that references the SysUser table
FieldAccount.SecretKeyBlocks access to the SecretKey column in Account
KeywordDROPBlocks any query containing the word DROP

Field: Description (text input)

Explanation shown to users when their query is blocked.

Write it as a helpful message, not just “blocked”:

  • "Blocked"
  • "Direct access to SysUser is restricted. Use User Management in Creatio instead."
  • "Schema changes require a change request. Contact DBA team."

This text appears directly in the error message the user sees.

Dialog buttons

ButtonAction
SaveCreates the rule. Active immediately.
CancelCloses without saving.

Delete blacklist rule confirm dialog

Deleting a manual rule:

“Delete this blacklist rule? Queries matching this pattern will no longer be blocked.” Buttons: Delete / Cancel


Tab 3 — Execution Logs

This tab provides a complete audit trail of every SQL query executed through SQL Cor.

Execution Logs  dark Execution Logs  light

Why the audit log matters

  • Incident investigation: “Who deleted these records and when?”
  • Security review: Spot unusual patterns or unexpected access
  • Compliance: Evidence that access is controlled and audited
  • User coaching: Identify users who could benefit from SQL training

Filters

Free text search across:

  • Query text content
  • Username
  • Status text

Date range

FieldPurpose
FromStart of the time window
ToEnd of the time window

Quick presets (one-click date ranges)

PresetSets range to
DayLast 24 hours
WeekLast 7 days
MonthLast 30 days

Default view: last 7 days.


Execution logs table

Paginated at 50 records per page with full server-side pagination controls.

ColumnWhat it shows
TimeTimestamp of execution (your local timezone)
UserCreatio username who ran the query
QueryTruncated query text (first ~60 chars)
DurationExecution time in milliseconds
RowsRows returned (SELECT) or affected (DML/DDL)
StatusSuccess 🟢 / Error 🔴 / Syntax ⚠️

Status values:

StatusIconMeaning
Success🟢Query executed and completed without errors
Error🔴Query failed with a database or system error
Syntax⚠️Query was rejected before execution due to syntax or parser error

Query Detail popup

Click any row in the table to open the Query Detail popup.

Execution Logs dark Execution Logs light

The popup shows:

SectionContents
MetadataUser, timestamp, duration, row count, status
Error textIf status is Error — error message displayed in red
Full queryComplete query text with syntax highlighting
Copy buttonCopies the full query text to clipboard

Tab 4 — System Settings

This tab controls global SQL Cor behavior — limits, timeouts, retention, feature flags, and maintenance mode.

System Settings  dark System Settings  light

System Information block (top of tab)

A read-only information panel showing live system state:

FieldShows
Package versionInstalled SQL Cor version number
DBMSDatabase engine (PostgreSQL or MSSQL)
Active rulesCount of currently active access rules
DB ping latencyRound-trip time to the database in ms

Query execution sliders

Three sliders control execution behavior. Changes apply immediately — no save button needed.

Query Timeout (seconds)

Setting key: DnSqlDefaultTimeout Range: 5s — 300s Default: 30s

How long the database waits before forcibly killing a running query.

ValueWhen to use
5–30sProduction — keeps resources free, catches runaway queries fast
60–120sStaging / complex analytics
120–300sDevelopment / known long-running migrations

Log Retention (days)

Setting key: DnSqlLogRetentionDays Range: 0 — 365 days Default: 90 days

How many days of audit logs are kept. Older logs are automatically deleted by a nightly cleanup job.

ValueWhen to use
0No retention — logs deleted immediately (not recommended)
30Low-storage environments
90Standard
365Compliance or regulatory requirements

Max Rows in result (rows)

Setting key: DnSqlMaxRowLimit Range: 100 — 10,000 rows Default: 1,000

Maximum rows returned by a single SELECT query. If a query produces more, results are truncated and a notice is shown to the user.

SQL Cor also automatically injects a LIMIT clause into SELECT queries that don’t have one:

  • PostgreSQL: adds LIMIT X
  • MSSQL: wraps with SELECT TOP X
ValueWhen to use
100–500Conservative — encourages specific queries
1,000Standard
5,000–10,000Analytics or reporting use cases

Feature toggles (checkboxes)

Two on/off master switches for operation types.

Auto-Abort Heavy Queries

StateEffect
ONAutomatically kills queries consuming more than 1GB RAM in the database process
OFFNo automatic kill — queries run until timeout

Maintenance Mode

A large prominent toggle with an ACTIVE / INACTIVE indicator.

System Settings  dark System Settings  light

StateVisualEffect
INACTIVEGray indicatorNormal operation — all users can run queries
ACTIVEYellow indicatorQuery execution blocked for all non-SysAdmin users

Custom message field

When Maintenance Mode is ON, this text field lets you write a message that users will see when they try to execute a query.

Example messages:

  • "Database update in progress until 14:00. Please try again later."
  • "Monthly backup running. SQL Terminal will be available in ~30 minutes."
  • "Emergency maintenance. Contact the DBA team for urgent queries."

System administrators are NOT blocked — they can still run queries during maintenance mode.


Service Actions

Three one-click utility actions at the bottom of the System Settings tab.

System Settings  dark System Settings  light

Check Connection

PropertyDetail
What it doesSends a ping to the database and measures latency
ResultToast notification: 🟢 "Database connection established (X ms)"
If failsToast notification: 🔴 "No database connection"
When to useWhen the status indicator is red, after server restart, or when users report connection issues

Check Access Level

PropertyDetail
What it doesChecks the current administrator’s SQL Cor role and access configuration
ResultToast notification showing current role and access level
When to useVerify your own admin configuration is correct

Clear Logs

PropertyDetail
What it doesImmediately deletes ALL records from the audit log table (bulk delete)
Confirmation requiredYes — see confirm dialog below
ResultToast notification: 🟢 "Deleted: X records"
When to useStorage management on small environments. Not recommended in production.

Confirm dialog for Clear Logs:

“Clear all logs? This action cannot be undone.” Buttons: Clear / Cancel


Toast notifications reference

SQL Cor uses its own toast notification system (bottom-right corner), separate from Creatio’s native notifications.

Success notifications (green background 🟢)

MessageTriggered by
"Settings saved"System Settings slider or toggle changed
"Rule added"New access rule or blacklist rule created
"Rule updated"Existing rule edited
"Database connection established (X ms)"Check Connection succeeded
"Deleted: X records"Clear Logs completed

Error notifications (red background 🔴)

MessageTriggered by
"Network error"Request to backend failed (network issue)
"No database connection"Backend cannot reach the database
"403 access denied"Current user lost admin privileges mid-session

Confirm dialogs reference

All destructive admin actions require explicit confirmation. These are browser-native confirm() dialogs.

Dialog textTriggered by
"Revoke this access?"Clicking Revoke on an active access rule
"Delete this access rule permanently?"Clicking Delete on any access rule
"Delete this blacklist rule?"Clicking Delete on a manual blacklist entry
"Clear all logs? This action cannot be undone."Clicking Clear Logs in Service Actions

New user onboarding

1. Open Access Control tab
2. Click + Grant Access
3. Select User (or Role for a team)
4. Set Access Level = ReadOnly (start conservative)
5. Set Valid Until if temporary
6. Write a descriptive Comment
7. Click Save
8. Send user the [User Guide](/v1.0/user-guide/) link

Monthly access review

1. Open Access Control tab
2. Filter: Status = Active
3. Review each rule:
- Is Valid Until still in the future?
- Does this person still need this access level?
- Is the business reason still valid?
4. Revoke rules that are no longer needed
5. Downgrade levels where full DDL is no longer necessary

Investigating an incident

1. Open Execution Logs tab
2. Set date range to when the incident occurred
3. Filter by suspect user (if known)
4. Search query text for affected table name
5. Click matching rows to see full query detail
6. Document findings (use Copy button on queries)

Before planned maintenance

1. Open System Settings tab
2. Write a clear message in the Maintenance Mode text field
3. Enable Maintenance Mode (toggle to ACTIVE — indicator turns yellow)
4. Perform your maintenance work
5. After maintenance: disable Maintenance Mode (toggle to INACTIVE)
6. Verify: run Check Connection to confirm DB is accessible

Cross-references

TopicSee
What users can do with each access levelUser Guide
All system messages (complete list)Message Reference
All buttons quick referenceFeature Reference
Common admin troubleshootingTroubleshooting
How security works internally★ For Google AI Studio/ARCHITECTURE

SQL Cor — Secure SQL Workbench for Creatio. Free and open source. License: MIT.

Document v1.0 · Applies to SQL Cor v1.0 · Last updated 1 June 2026