> ## Documentation Index
> Fetch the complete documentation index at: https://docs.blinkops.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Execute SQL Query

Executes an SQL query against your instance database.

## Parameters

<div className="integrations-table">
  | Parameter | Description                   |
  | --------- | ----------------------------- |
  | Query     | The SQL query to be executed. |
</div>

## Example Output

```json theme={"dark"}
{
	"response_status": {
		"status_code": 2000,
		"status": "success"
	},
	"execute_query": {
		"data": [
			{
				"Account ID": 1,
				"IP Address": "-",
				"Vip User": false,
				"Account Created At": 1696355399600,
				"User Type": "REQUESTER",
				"Login Name": "guest",
				"Domain": "-",
				"User Name ( First Name )": "Guest"
			},
			{
				"Account ID": 2,
				"Last Login Time": 1696361664015,
				"IP Address": "46.121.17.189",
				"Vip User": false,
				"Account Created At": 1696355399600,
				"User Type": "TECHNICIAN",
				"Login Name": "administrator",
				"Domain": "-",
				"Last Logout Time": 0,
				"User Name ( First Name )": "administrator"
			}
		]
	}
}
```

## Workflow Library Example

[Execute Sql Query with Manage Engine Servicedesk Plus and Send Results Via Email](https://library.blinkops.com/workflows/execute-sql-query-with-manage-engine-servicedesk-plus-and-send-results-via-email)

<div className="iframe-wrapper">
  <div className="iframe-media">
    <img src="https://mintcdn.com/blinkops-2/ojHYuDeYX5FWuN8a/img/Icons/play-box.svg?fit=max&auto=format&n=ojHYuDeYX5FWuN8a&q=85&s=b8af968e71438a9499c3223c9bd29fb2" alt="Workflow Library" width="16" height="16" data-path="img/Icons/play-box.svg" />

    Preview this Workflow on desktop
  </div>

  <iframe className="iframe" src="https://library.blinkops.com/workflows/execute-sql-query-with-manage-engine-servicedesk-plus-and-send-results-via-email/canvas" />
</div>
