I am facing challenge in updating Database using pypyodbc module. Not getting any error, code is successfully executed; but SQL-Server DB is not updated. Fetching from DB is happening.
Please check:
connection = pypyodbc.connect('Driver={SQL SERVER};Server=ser;Database=db;uid=uname;pwd=pass')
cursor=connection.cursor()
cursor.execute("declare @today as date;set @today = convert(varchar,getdate(),101);Update dbo.Credentials_Mst Set Password='qwerty',lastModifiedOn=@today,ModifiedBy='abcd' where Username='abc';")