from pymssql import _mssql conn = _mssql.connect(server='SQL01', user='user', password='password', \ database='mydatabase') conn.execute_non_query('CREATE TABLE ...
sql_exporter is a generic exporter: it knows nothing about SQL Server by itself. It connects to the database as an ordinary client, and on every scrape of /metrics it runs the queries in its collector ...