import pyodbc x = str(input("Enter your User ID: ")) conn = pyodbc.connect('DRIVER={SQL Server Native Client 11.0};SERVER=localhost;DATABASE=Contacts;UID=sa;PWD=gabe$1972') c = conn.cursor() cursorNew = c.execute(""" select User_ID, Password from Contact_Login where User_ID =? """, [x]) rows = cursorNew.fetchall() for row in rows: print("User ID: " + row.User_ID + ", " + "Password: " + row.Password) input('Press enter to exit:' )
from cx_Freeze import setup,Executable setup( name ="TESTPYODBC", version = "0.1", description = "test", executables = [Executable("pytest1.py")], )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)