MSSQL¶
Installation¶
Connection URL¶
Connect to MSSQL by passing a connection URL to the Database
constructor:
Connection Parameters¶
Alternatively, connect using the Database.from_mssql()
method with parameters:
PARAMETER | DESCRIPTION |
---|---|
host
|
Address of MSSQL server to connect to. Default is 'localhost'.
TYPE:
|
user
|
Username. Leave blank to use Integrated Authentication.
TYPE:
|
password
|
Password. Leave blank to use Integrated Authentication.
TYPE:
|
port
|
Port of MSSQL server to connect to. Default is 1433.
TYPE:
|
database
|
The MSSQL database to connect to.
TYPE:
|
driver
|
ODBC Driver to use. On Mac and Linux this is usually 'FreeTDS'. On Windows, it is usually one of: - ODBC Driver 11 for SQL Server - ODBC Driver 13 for SQL Server (for both 13 and 13.1) - ODBC Driver 17 for SQL Server - ODBC Driver 18 for SQL Server See https://learn.microsoft.com/en-us/sql/connect/odbc/windows/system-requirements-installation-and-driver-files
TYPE:
|
match_schema
|
Regex pattern to filter schemas. Mutually exclusive with match_tables.
TYPE:
|
match_tables
|
Regex pattern to filter tables. Mutually exclusive with match_schema.
TYPE:
|
**kwargs
|
Additional keyword arguments to pass to PyODBC.
TYPE:
|