← All Adapters
SQL SERVER
type: sqlserverMicrosoft's enterprise relational database. Dominant in corporate environments, especially with .NET ecosystems.
PREREQUISITES
Driver: pyodbc — installed automatically by:
dvt sync
CONFIGURATION FIELDS
| FIELD | TYPE | REQUIRED | DEFAULT | DESCRIPTION |
|---|---|---|---|---|
| type | string | yes | — | Must be `sqlserver` |
| host | string | yes | — | Server hostname or IP |
| port | integer | no | 1433 | Server port |
| user | string | yes | — | Database user |
| password | string | yes | — | Database password |
| database | string | yes | — | Database name |
| encrypt | boolean | no | false | Enable encryption |
| trust_cert | boolean | no | false | Trust server certificate |
| threads | integer | no | 4 | Number of parallel threads |
PROFILES.YML EXAMPLE
my_project:
target: mssql_dev
outputs:
mssql_dev:
type: sqlserver
host: sql-server.internal.com
port: 1433
user: sa
password: "{{ env_var('MSSQL_PASSWORD') }}"
database: analytics
encrypt: false
trust_cert: trueSOURCES.YML EXAMPLE
sources:
- name: enterprise_db
connection: mssql_dev
database: ERP
schema: dbo
tables:
- name: GL_Accounts
- name: AP_InvoicesINCREMENTAL STRATEGIES
✓ Append✓ Delete+Insert✓ Merge
KNOWN LIMITATIONS
- ⚠Requires ODBC driver installed (dvt sync handles this)