Table of Contents

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>