This is an automated email from the ASF dual-hosted git repository.

potiuk pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/airflow.git


The following commit(s) were added to refs/heads/main by this push:
     new edee250  Add driver parameter for MsSQL URL for production image in 
docs (#18426)
edee250 is described below

commit edee250d4909e14b80c195677095c0da117c6111
Author: Jarek Potiuk <[email protected]>
AuthorDate: Wed Sep 22 10:37:45 2021 +0200

    Add driver parameter for MsSQL URL for production image in docs (#18426)
    
    The production image uses ODBC Driver to connect to mssql, and you
    need to specify the driver explicitely to make it works.
---
 docs/apache-airflow/howto/set-up-database.rst | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/docs/apache-airflow/howto/set-up-database.rst 
b/docs/apache-airflow/howto/set-up-database.rst
index fb54c60..be9a19b 100644
--- a/docs/apache-airflow/howto/set-up-database.rst
+++ b/docs/apache-airflow/howto/set-up-database.rst
@@ -265,7 +265,15 @@ We recommend using the ``mssql+pyodbc`` driver and 
specifying it in your SqlAlch
 
 .. code-block:: text
 
-    mssql+pyodbc://<user>:<password>@<host>/<db>
+    mssql+pyodbc://<user>:<password>@<host>[:port]/<db>?[driver=<driver>]
+
+
+You do not need to specify the Driver if you have default driver configured in 
your system. For the
+Official Docker image we have ODBC driver installed, so you need to specify 
the ODBC driver to use:
+
+.. code-block:: text
+
+    
mssql+pyodbc://<user>:<password>@<host>[:port]/<db>[?driver=ODBC+Driver+17+for+SQL+Server]
 
 
 Other configuration options

Reply via email to