Skip to main content
Question

Connect and execute Microsoft SQL on Python Shutdown Script

  • June 27, 2018
  • 1 reply
  • 18 views

Forum|alt.badge.img+1

Has anyone successfully executed an insert\\delete SQL statement to a SQL database via Python in the Shutdown Script?

1 reply

david_r
Evangelist
  • June 28, 2018

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings