Skip to content

Is Possible Running From Python ? #8816

Answered by wsmelton
febridev asked this question in General
Discussion options

You must be logged in to vote

The module only works in a PowerShell session. You can call PowerShell within Python and also dotnet libraries.

Most that want to interact with SQL in Python I believe are just using PYODBC and T-SQL for one-off stuff.

If you are wanting to do instance management through Python I would see if there are any dotnet published packages for Python with SMO. The last time I had looked there wasn't but that was years ago now.

Thoughts and discussions have come up about creating a native package for Python of dbatools but it would be a huge undertaking at this point. I'd consider it, even though I'm not the strongest with Python, but I'd need some sponsorship or something to show it would be a wo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@wsmelton
Comment options

Answer selected by febridev
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants