Closed uezo closed 6 months ago
This is a temporary workaroud from AIProxy >= 0.3.6. Set AIPROXY_USE_NVARCHAR=1 to use NVARCHAR internally.
AIPROXY_USE_NVARCHAR=1
$ export AIPROXY_USE_NVARCHAR=1
Install ODBC driver (version 18 in this example) and pyodbc then set connection string as follows:
pyodbc
# connection_str = "sqlite:///aiproxy.db" connection_str = f"mssql+pyodbc:///?odbc_connect=DRIVER={ODBC Driver 18 for SQL Server};SERVER=YOUR_SERVER;PORT=1433;DATABASE=YOUR_DB;UID=YOUR_UID;PWD=YOUR_PWD" worker = AccessLogWorker(connection_str=connection_str)
This is a temporary workaroud from AIProxy >= 0.3.6. Set
AIPROXY_USE_NVARCHAR=1
to use NVARCHAR internally.Install ODBC driver (version 18 in this example) and
pyodbc
then set connection string as follows: