Skip to content

Instantly share code, notes, and snippets.

@konarkmodi
Created September 26, 2013 21:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save konarkmodi/6720531 to your computer and use it in GitHub Desktop.
Save konarkmodi/6720531 to your computer and use it in GitHub Desktop.
Sample program for PyODBC
import pyodbc
connection_string = "DRIVER=FreeTDS;SERVER=;DATABASE=;UID=;PWD=;tds_version=8.0;port=1433"
conn = conn=pyodbc.connect(connection_string)
result_fetch = conn.execute(sql_query)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment