From 650fa29e14c94c7e1c549b995e96ad5ac7de308b Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Thu, 12 Dec 2019 23:58:34 +0100 Subject: [PATCH] Fix pyodbc --- source/_integrations/recorder.markdown | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/source/_integrations/recorder.markdown b/source/_integrations/recorder.markdown index 2093c806f41..865253c2b06 100644 --- a/source/_integrations/recorder.markdown +++ b/source/_integrations/recorder.markdown @@ -138,7 +138,7 @@ Call the service `recorder.purge` to start a purge task which deletes events and | PostgreSQL | `postgresql://SERVER_IP/DB_NAME` | | PostgreSQL | `postgresql://user:password@SERVER_IP/DB_NAME` | | PostgreSQL (Socket) | `postgresql://@/DB_NAME` | -| MS SQL Server | `mssql+pymssql://user:password@SERVER_IP/DB_NAME?charset=utf8` | +| MS SQL Server | `mssql+pyodbc://username:password@dsnname` |
@@ -250,8 +250,8 @@ A service restart will work as well. For MS SQL Server you may have to install a few dependencies: ```bash -sudo apt-get install freetds-dev -pip3 install pymssql +sudo apt-get install unixodbc-dev +pip3 install pyodbc ``` If you are in a virtual environment, don't forget to activate it before installing the pymssql package. @@ -259,5 +259,5 @@ If you are in a virtual environment, don't forget to activate it before installi ```bash sudo -u homeassistant -H -s source /srv/homeassistant/bin/activate -pip3 install pymssql +pip3 install pyodbc ```