Has anyone successfully executed an insert\\delete SQL statement to a SQL database via Python in the Shutdown Script?
Have a look at using the pyodbc module, see also this discussion on StackOverflow: https://stackoverflow.com/a/33787509
The SQL Server writers also have a parameter you can set, containing a SQL command to execute at the end:
Reply
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.