---
title: Scripts Should Not Use gs.sql
description: "Impact Area Manageability Severity High         Affected Element Access Control Scripted Rest Resource UI Action Widget Inline Scripts ## Rule number **SN-0175** ## Impact `gs.sql` executes against the database directly. This risks system integrity. ## Remediation Do not…"
url: "https://community-staging.qualityclouds.com/qcdocs/qcr/rules/scripts-should-not-use-gs-sql/"
updated: "2025-03-21"
category: Rules
---

# Scripts Should Not Use gs.sql

Impact Area

Manageability

           Severity

High

 

 

 

 

           Affected Element

Access Control

Scripted Rest Resource

UI Action

Widget

Inline Scripts

## Rule number

**SN-0175**

## Impact

`gs.sql` executes against the database directly. This risks system integrity.

## Remediation

Do not use `gs.sql` in code. It interacts and alters the database directly, potentially causing significant damage to the integrity of the system. Remove all references, and use GlideRecord instead.

### Time to fix

15 min
