I am able to establish a connection to the database when using this code :
conn = pyodbc.connect('Driver={SQL Server Native Client 11.0}; Server=1070010-01; uid=sa; pwd=SDKJ-1111; Database = TEST_DB; Trusted_Connection=No;')
I've manually put in the user name and password . Now ,how would I write my code in order to make it take the user input and use it as credentials ? How do I set a variable for example and call it inside the function later on ?
Thank you