Код: Выделить всё
con = pyodbc.connect('DRIVER={Progress OpenEdge 10.2B Driver};HOST=ip address here;PORT=1234;DATABASE=mydb;UID=myuid;PWD=mypw')
Код: Выделить всё
# Connection string parameters
params = urllib.parse.quote_plus(
'DRIVER={Progress OpenEdge 10.2B Driver};'
'HOST=ip address here;'
'PORT=1234;'
'DATABASE=mydb;'
'UID=myuid;'
'PWD=mypw'
)
# Create the engine using the correct format
engine = create_engine(f'mssql+pyodbc:///?odbc_connect={params}')
Подробнее здесь: https://stackoverflow.com/questions/788 ... edge-10-2b