I started using a lot of sql using ms sql server, and would like to automate some steps using python script.
My plan is to have the python using various inputs so that if and when I need to get different output from sql server, I can just run the python script and execute the SQL code in the Microsoft SQL Server Management Studio. This way, I can get the results I wanted quickly without manually tweeking the sql code all the time for my different needs (but using the same code).
So far I've checked out all (but not limited to) these posts:
However, I have not been able to fully understand how to connect them. Or maybe I am understanding it wrong, it's actually not connecting the two? I could not find much information about this topic. Any help is greatly appreciated!
Note:
to clarify, i dont even know how to start :( So ANY guidance is really appreciated!