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

后端 未结 15 1844
暖寄归人
暖寄归人 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:26

    I've met same problem and fixed it changing connection string like below. Write

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

    instead of

    'DRIVER={SQL Server}'
    

提交回复
热议问题