We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents b77cbd1 + 1134c80 commit 351138cCopy full SHA for 351138c
1 file changed
samples/tutorials/python/jupyter/sample_python_jupyter.py
@@ -5,8 +5,8 @@
5
password = 'mypassword'
6
7
#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()
+connection = pyodbc.connect('DRIVER={SQL Server Native Client 11.0};SERVER='+server+';DATABASE='+database+';UID='+username+';PWD='+ password)
+cursor = connection.cursor()
10
11
#Sample select query
12
cursor.execute("SELECT @@version;")
0 commit comments