Skip to content

Commit 1134c80

Browse files
authored
Updated the code
1 parent 66f30f1 commit 1134c80

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

samples/tutorials/python/jupyter/sample_python_jupyter.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
password = 'mypassword'
66

77
#Connection String
8-
cnxn = pyodbc.connect('DRIVER={SQL Server Native Client 11.0};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password)
9-
cursor = cnxn.cursor()
8+
connection = pyodbc.connect('DRIVER={SQL Server Native Client 11.0};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password)
9+
cursor = connection.cursor()
1010

1111
#Sample select query
1212
cursor.execute("SELECT @@version;")

0 commit comments

Comments
 (0)