---
title: Usage of SQL Agent
slug: kron-dam-sql-agent/usage-of-sql-agent
docTags: 
createdAt: 2024-10-08T06:58:53.910Z
---

Using SQL Agent effectively involves:

- Define Users, User Groups, Device, and Device Groups in Kron DAM
- Define Policies and Realms
- Define Masking

To access SQL Agent, you should have an SSH connection to the target database server.

To execute the agent you should run one of the following commands:

- agent&#x20;
- agent  username\@db\_ip

To run it as a sys user, you can run the following command:

- agent / as sysdba

:::hint{type="info"}
SYS user should be added to Kron DAM to access as sys to the database.
:::

