Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (10 sloc) 0.333 kb
from testutils import *
add_to_path()
import pyodbc
cnxn = pyodbc.connect("DRIVER={SQL Server Native Client 10.0};SERVER=localhost;DATABASE=test;Trusted_Connection=yes")
print('cnxn:', cnxn)
cursor = cnxn.cursor()
print('cursor:', cursor)
cursor.execute("select 1")
row = cursor.fetchone()
print('row:', row)
Jump to Line
Something went wrong with that request. Please try again.