Skip to content

Commit 351138c

Browse files
Merge pull request #469 from ashwanitr001/patch-2
Updated the code
2 parents b77cbd1 + 1134c80 commit 351138c

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)