Command line utility for gathering SQL Server information
Change connection string in configuration file and start utility to gather static and statistical information on SQL Server, databases and queries.
Short example of using:
https://www.arbinada.com/en/node/1522