Skip to content
Advertisement

Data is not inserted MSSQL Python

I am doing a python script to add text files into an MSSQL table. Using pyodbc, I’m doing it. The data is not inserted in the result. There is no error showing when running.

Here is my code,

Advertisement

Answer

You’re missing a call to cnxn.commit() after the loops are done.

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement