Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check_mssql_database.py - Seperate database connection from table name #22

Open
barosch78 opened this issue May 8, 2019 · 0 comments
Open

Comments

@barosch78
Copy link

In a very old version of this script I was able to check the transactions per second for all databases over the virtual table name _Total because the database name was hardcoded to 'master'

SELECT * FROM sys.sysperfinfo WHERE counter_name='Transactions/sec' AND instance_name='_Total'

In the actual version this is not longer possible because the table and the database are the same.
I changed the script according to my needs. Maybe someone else will find this useful as well.

Greetings
Barosch

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant