View as Markdown
Microsoft Azure SQL Database icon

Microsoft Azure SQL Database ACTION

Execute Query

Executes a SQL query and returns the results. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Microsoft Azure SQL Database account once, then configure and run Execute Query from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "azure_sql-execute-query",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    azure_sql: { authProvisionId: "apn_xxxxxxx" },
    query: "Query",
    inputs: "Inputs",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Execute Query inputs
Property Type Description
query Query string
The SQL query to execute
Required
inputs Inputs object
The inputs to the query. These will be available as @input_parameter in the query. For example, if you provide an input named 'id', you can use @id in the query.
Optional
requestTimeout Request Timeout integer
The timeout for query execution in seconds. Default is 60 seconds if not specified.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
azure_sql-execute-query
Version
0.0.8
App
Microsoft Azure SQL Database
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes