PYODBC--Data source name not found and no default driver specified

后端 未结 15 1774
暖寄归人
暖寄归人 2020-11-28 13:01
import pyodbc
connection = pyodbc.connect(\'Driver = {SQL Server};Server=SIWSQL43A\\SIMSSPROD43A;\'
                            \'Database=CSM_reporting;Trusted_Conn         


        
15条回答
  •  醉梦人生
    2020-11-28 13:18

    I am also getting same error. Finally i have found the solution.

    We can search odbc in our local program and check for version of odbc. In my case i have version 17 and 11 so. i have used 17 in connection string

    'DRIVER={ODBC Driver 17 for SQL Server}'

提交回复
热议问题