Connect Database
mssql_connect_databaseEstablish a connection to MS SQL Server using environment variables for server, database, and credentials. Calling again reconnects.
Instructions
Connects to MS SQL Server using environment variables (DB_SERVER, DB_DATABASE, DB_USER, DB_PASSWORD, DB_PORT, DB_ENCRYPT, DB_TRUST_SERVER_CERTIFICATE). No credentials accepted as parameters — all connection settings come from the server environment only. Idempotent: calling again reconnects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| config | Yes | ||
| connected | Yes | ||
| pool_info | Yes |