Install MSODBC MacOS

Поделиться
HTML-код
  • Опубликовано: 20 фев 2022

Комментарии • 15

  • @eduardomarcelogutierrezsot9577
    @eduardomarcelogutierrezsot9577 10 месяцев назад +1

    Me acabas de ayudar de una manera que no tienes idea, buenisimo tu video.

  • @elliepenkova3853
    @elliepenkova3853 2 месяца назад

    You're a LIFESAVER!!! Thank you! I didn't even think what I wanted was possible. I have a docker container which is running SQL Server that I connected to my database in Azure Data Studio. But I couldn't figure out why I couldn't connect my Jupyter notebook(in VS Code) to the database... But when I ran the commands you suggested and added the driver file path and 'encrypted=no', everything worked out!
    encrypt = 'no',
    driver = '/opt/homebrew/lib/libmsodbcsql.18.dylib'
    sudo ln -s /opt/homebrew/opt/openssl@1.1 /opt/homebrew/opt/openssl@3
    sudo ln -s /opt/homebrew/opt/openssl@1.1 /opt/homebrew/opt/openssl

    • @siyasuryawanshi1
      @siyasuryawanshi1 4 дня назад

      can you please help me with this? I'm stuck in the same scenario

  • @kmonish9119
    @kmonish9119 2 месяца назад

    Hi Marc, I don''t find opt folder in /usr/local
    Any idea why this might be the case. Also in my system it says openssl 1.1.1.w - is that okay?

  • @user-kp4fo1bj8o
    @user-kp4fo1bj8o Год назад +1

    Hi Marc, I'm still getting the same error. Do you have any other recommendations?

    • @marcgoodman4862
      @marcgoodman4862  Год назад +3

      Use pymssql instead. The syntax for executing parameterized statements is a little different, but it's an easy change to learn, and the installation for pymssql is often easier on Mac because it doesn't go through the MS ODBC drivers.

    • @user-kp4fo1bj8o
      @user-kp4fo1bj8o Год назад

      @@marcgoodman4862 Thanks!! That worked for me!

  • @moramoy1
    @moramoy1 Год назад +1

    Sir, I am getting this error: pyodbc.Error: ('01000', "[01000] [unixODBC][Driver Manager]Can't open lib 'ODBC Driver 18 for SQL Server' : file not found (0) (SQLDriverConnect)")
    Do you have any suggestions?

    • @marcgoodman4862
      @marcgoodman4862  Год назад

      Are you sure you installed version 18 of MSODBC? If you installed a different version, it wouldn't be able to find Driver 18.

    • @moramoy1
      @moramoy1 Год назад

      @@marcgoodman4862 Sir: Not sure, I will re-install ODBC on Mac and try again. Thank you.

  • @RahulThiruthinmelPremnavas
    @RahulThiruthinmelPremnavas Месяц назад

    sir i have a mac intel processor and i tried with verison 17 pyodbc , it shows this error, could you tell me what could be the reason? pyodbc.InterfaceError: ('28000', "[28000] [Microsoft][ODBC Driver 17 for SQL Server][SQL Server]Login failed for user

    • @marcgoodman4862
      @marcgoodman4862  Месяц назад

      This type of error looks like your database credentials are wrong. Check your database username and password. Are you using cisdbss.pcc.edu for the server with IMDB as the database and 275student for both user and password?

    • @RahulThiruthinmelPremnavas
      @RahulThiruthinmelPremnavas Месяц назад

      @@marcgoodman4862 no sir, it my private database. with credentials,

  • @daleksupreme922
    @daleksupreme922 Год назад +2

    Useless and doesn't work

    • @Ylliwx3
      @Ylliwx3 8 месяцев назад +1

      Please don't say that. You better share what you did and we can help you to find a solution. This video was REALLY useful.
      I'm using a MacBook Pro (M3 Pro) and there was a small difference at the end, so I had to execute the following:
      sudo ln -s /opt/homebrew/opt/openssl@1.1 /opt/homebrew/opt/openssl@3
      sudo ln -s /opt/homebrew/opt/openssl@1.1 /opt/homebrew/opt/openssl
      The error is gone now and I was able to connect to SQL Server on a remote server.