docs/documentation/platform/pam/accounts/mssql.mdx
MS SQL accounts let you manage access to your Microsoft SQL Server databases. Users connect through the CLI (a local proxy), and every session is recorded.
<Tabs>
<Tab title="SQL Server Authentication">
Standard SQL Server login with username and password.
| Field | Description |
|-------|-------------|
| **Username** | SQL Server username |
| **Password** | SQL Server password |
</Tab>
<Tab title="Windows Authentication (NTLM)">
Windows domain authentication using NTLM.
| Field | Description |
|-------|-------------|
| **Username** | Windows username |
| **Password** | Windows password |
| **Domain** | Windows domain name |
</Tab>
<Tab title="Windows Authentication (Kerberos)">
Windows domain authentication using Kerberos.
| Field | Description |
|-------|-------------|
| **Username** | Windows username |
| **Password** | Windows password |
| **Realm** | Kerberos realm (uppercase) |
| **KDC Address** | Key Distribution Center address (optional) |
| **SPN** | Service Principal Name |
</Tab>
</Tabs>
The CLI starts a local proxy that you connect to with your preferred SQL Server client.
infisical pam access my-folder/analytics-db
The command outputs the local port to connect to. Then use sqlcmd, Azure Data Studio, or any SQL Server client:
sqlcmd -S localhost,<port> -d analytics
No password needed since the proxy handles authentication.
Flags:
--port <port> — use a specific local port (otherwise one is assigned automatically)--reason <reason> — provide an access reason (if required by template)