This documentation describes a release under development. Documentation for the latest release, 3.6.2, can be found here.
Microsoft SQL Server¶
Microsoft SQL Server can either be used as a data source or a data destination in Mitto.

Source plugin example: Query
Destination plugin examples: CSV, Salesforce, SQL
Microsoft SQL Server as a data destination¶
Mitto automatically creates the Microsoft SQL Server database schema if it doesn’t exist
Mitto automatically creates the Microsoft SQL Server database tables if they don’t exist
Mitto automatically determines data types for Microsoft SQL Server columns
Mitto automatically adds new columns to Microsoft SQL Server tables based on new fields in source systems
Mitto automatically adjusts Microsoft SQL Server tables based on changes in source data
Microsoft SQL Server specific setup¶
Below is the database url structure for connecting to a Microsoft SQL Server database:
mssql+pyodbc://<username>:<password>@<hostname>/<database>?<parameters>
Note
Microsoft SQL Server requires a parameter for the Microsoft SQL Server driver. Typically this is ?driver=ODBC+Driver+17+for+SQL+Server.
Here’s an example of using a Microsoft SQL Server database as a destination in a CSV job:

Note
When outputting to a Microsoft SQL Server database, leaving the “Schema” blank will create a table in the dbo schema.
SQL¶
Mitto can send SQL statements to a Microsoft SQL Server database. Use Microsoft SQL Server syntax in these Mitto SQL jobs.