Created
December 8, 2014 07:38
-
-
Save earthday/39c7e618689debd30f25 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
conn = pymssql.connect(server, user, password, "tempdb") | |
cursor = conn.cursor() | |
cursor.execute('SELECT * FROM persons WHERE salesrep=%s', 'John Doe') | |
for row in cursor: | |
print('row = %r' % (row,)) | |
conn.close() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment