![]() ![]() Check your network connection or notebook server configuration. The notebook will continue trying to reconnect. Server = ‘tcp:’ < -192.168.63.8Ĭnxn = pyodbc. When starting the notebook from terminal using the command Jupyter notebook, and then select a notebook I want to work with, I get the error: 'A connection to the notebook server could not be established. Import pyodbc Some other example server values are server = ‘localhost\sqlexpress’ # for a named instance server = ‘myserver,port’ # to specify an alternate port RUN apt-get install -y python3-pip python3-dev unixodbc-devĪnd this is sample of connection string and as i said it is working with SQL user but need to use windows authentication users: ![]() RUN source ~/.bashrc optional: for unixODBC development headers RUN echo ‘export PATH="$PATH:/opt/mssql-tools/bin"’ > ~/.bashrc ![]() RUN ACCEPT_EULA=Y apt-get install -y mssql-tools RUN ACCEPT_EULA=Y apt-get install -y msodbcsql17 optional: for bcp and sqlcmd #Download appropriate package for the OS version #FROM alpine Install Python 3 pyodbc packagesĪpt-get install -yes -no-install-recommends This is my dockerFile for custome Notebook image with capability of connecting to MSSQL via pyodbc and ODBC driver 17:ĪRG BASE_CONTAINER=$OWNER/scipy-notebook:akhari Has anyone done that before? I found that if wanting to get connected from linux machine to MSSQL DB via windows authentication it needs to install and config some packages for user integration between linux and microsoft kerberos…sth like FreeTDS package… I want to connect to Microsft SQL server database from jupyternotebook which is based on kubernetes z2jH installation, I made a cutome notebook image which has pyodbc
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |