About 287,000 results
Open links in new tab
  1. Retrieving Data from SQL Using pyodbc - Stack Overflow

    I am trying to retrieve data from an SQL server using pyodbc and print it in a table using Python. However, I can only seem to retrieve the column name and the data type and stuff like that, not the

  2. how to catch specific pyodbc error message - Stack Overflow

    Jul 9, 2012 · In pyodbc 3.0.7, it works fine to catch pyodbc.ProgrammingError (and presumably the other error types, although I haven't tried). The contents of the error are still sort of cryptic, though, so it may be hard to do finer-grained handling of errors.

  3. python - How do I use pyodbc.connect () with authorization ...

    Jul 25, 2019 · How do I use pyodbc.connect () with authorization=ActiveDirectoryIntegrated? Asked 6 years ago Modified 4 years, 5 months ago Viewed 16k times

  4. Automatically Detect ODBC Driver using Pyodbc in Python 3

    Apr 9, 2018 · Hi I'm currently using pyodbc in Python 3 and I'm trying to figure out a way to automatically detect ODBC Driver by not having to change manually when used by different computers.

  5. how do you connect to oracle using pyodbc - Stack Overflow

    I am trying to connect to Oracle db using pyodbc, getting errors. The examples include ms sql server driver: in my /etc/unixODBC/odbc.ini, I have this entry: [test_con] Driver=Oracle Description=...

  6. python - Connecting to ODBC using pyODBC - Stack Overflow

    Jun 15, 2015 · I've read all the faq pages from the python odbc library as well as other examples and managed to connect to the DSN, using the following code: cnxn = pyodbc.connect("DSN=DSNNAME") cursor = cnxn.c...

  7. ModuleNotFoundError: No module named 'pyodbc' when …

    import pyodbc as pyodbc ModuleNotFoundError: No module named 'pyodbc' (where line 5 is the 'import pyodbc' line) I have tried copying the pyodbc.cp37-win_amd64.pyd file into my Python Scripts folder and into the folder where my pip.exe file is. Currently python is my Python37 folder. pyodbc.cp37-win_amd64.pyd is in Python > Lib > site-packages.

  8. return column names from pyodbc execute () statement

    Jun 13, 2015 · return column names from pyodbc execute () statement Asked 12 years, 9 months ago Modified 5 years, 11 months ago Viewed 96k times

  9. PYODBC + MS SQL SERVER connection with Encrypt=yes not …

    Jun 15, 2020 · 6 According to this documentation, pyodbc passes the connection string through to the underlying ODBC driver. Microsoft's article Using Connection String Keywords with SQL Server Native Client documents both the Encrypt and TrustServerCertificate attributes.

  10. python - PYODBC--Data source name not found and no default …

    Sep 5, 2017 · import pyodbc connection = pyodbc.connect('Driver = {SQL Server};Server=ServerName;' 'Database=Database_Name;Trusted_Connection=yes;') In place of Driver = {SQL Server} we can try these option one by one or just you can use with you corresponding setting, somehow in my case the last one works :)