Legacy Microsoft SQL system¶
The Legacy Microsoft SQL system represents a Microsoft SQL Server available over the network.
Note that this system is a legacy system that’s based on open source drivers and has been superceded by the Microsoft SQL Server which uses official microsoft drivers.
See the supported column types list for a overview of which SQL Server column types are supported and how they are mapped to Sesam types.
Prototype¶
{
"_id": "sql_system_id",
"type": "system:mssql",
"name": "Legacy Microsoft SQL Server Database",
"username":"$ENV(username-variable)",
"password":"$SECRET(password-variable)",
"host":"fqdn-or-ip-address-here",
"tds_version":"7.4",
"instance": "named-instance",
"port": 1433,
"database": "database-name"
}
Properties¶
Property |
Type |
Description |
Default |
Req |
---|---|---|---|---|
|
String |
Username to use when connecting to the database. |
Yes |
|
|
String |
Password to use when connecting to the database. |
Yes |
|
|
String |
Host name or IP address to the database server. Must be DNS resolvable if non-numeric. |
Yes |
|
|
String |
The name of the SQL Server “named instance”, if applicable. Note that if |
||
|
Integer |
Database IP port. Note: ignored if |
1433 |
|
|
String |
Name/id of database to connect to. |
Yes |
|
|
String |
Version of the TDS protocol to use for the driver.
Note that the default is |
Example configuration¶
Example MS SQL Server configuration:
{
"_id": "sqlserver_db",
"name": "Legacy MS SQL Server test database",
"type": "system:mssql",
"username": "$ENV(username-variable)",
"password": "$SECRET(password-variable)",
"host": "localhost",
"port": 1433,
"database": "testdb"
}