Overview
Add Microsoft SQL Server to any ModuleX agent or workflow. Execute queries and manage data in Microsoft SQL Server databases via direct TCP connections usingpymssql.
Categories: Databases · Data Infrastructure · Auth: SQL Server Connection · Actions: 4
Authentication
SQL Server Connection
Connect using SQL Server host, port, database, username, and passwordRequired Credentials
| Field | Description | Required | Format |
|---|---|---|---|
| Host | SQL Server hostname or IP address | Yes | myserver.database.windows.net |
| Port | SQL Server port number | Yes | 1433 |
| Username | SQL Server login username | Yes | - |
| Password | SQL Server login password | Yes | - |
| Database | Name of the database to connect to | Yes | - |
| Encrypt | Whether to encrypt the connection (true/false). Use true for Azure SQL. | No | true |
| Trust Server Certificate | Whether to trust self-signed certificates (true/false). Use true for local dev. | No | false |
Available Actions
execute_raw_query — Execute a raw SQL query against the database and return results
execute_raw_query — Execute a raw SQL query against the database and return results
execute_query — Execute a parameterized SQL query with named inputs
execute_query — Execute a parameterized SQL query with named inputs
insert_row — Insert a new row into a specified table
insert_row — Insert a new row into a specified table
list_table_options — List all available base tables in the database
list_table_options — List all available base tables in the database
Response
Limits & Quotas
- No API rate limits apply; performance depends on the SQL Server instance capacity and network latency.
- Connection timeout defaults to pymssql’s default (dependent on server responsiveness).
- Query execution is wrapped in
asyncio.to_threadso it does not block the event loop. - Error model: connection failures, query syntax errors, and timeouts are caught and returned as
success=False+errorrather than raising.