Python - odbc

> Procedural Languages > Python

1 - pyodbc

import pyodbc
conn = pyodbc.connect('DSN=dsnName;UID=username;PWD=password')
print conn

If there's no exception throw out, the connection is succesful:

<pyodbc.Connection object at 0x155fd98>