We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 66f30f1 commit 1134c80Copy full SHA for 1134c80
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