T-SQL, or Transact-SQL, is Microsoft SQL Server’s extension of SQL. Administrators and applications use it to query and change data, manage database objects, and control server operations. It includes procedural features such as variables, conditionals, and stored procedures.
In cybersecurity, T-SQL is both a legitimate administration tool and a potential route for abuse. An attacker with database access may use commands or server features to reach operating-system functions, depending on the SQL Server configuration and the account’s permissions. This can enable payload delivery or other host-level actions, but database commands alone do not prove that a system was compromised. Defenders should restrict SQL Server network access, apply least privilege to accounts, and monitor for unusual commands or database activity that triggers processes on the host.


