Percentage of ad-hoc queries

6,911 0
This metric will display the percentage of queries on the server that are ad-hoc queries. A high percentage of ad-hoc queries can indicate that an application is running queries that are not properly parameterized. Read more

SELECT Statement executed against Classified table

3,935 0
Uses Server and database audit to track SELECT statements. First Create a Server audit: [crayon-676ddcaf24a17273718069/] Then a database specific Audit based on this server audit: (in this case on the Database: WideworldImporters, schema “Sales” and table: “Customers” [crayon-676ddcaf24a1f496006159/] Then setup the custom metric: Read more

Database user added

3,991 0
This custom metric queries the default trace to find events related to whenever a login is added as a database user to a database. Read more

Space used by database objects

5,228 0
This metric reports the total space used by database files in GB. This includes data files but excludes log files. This lets you track the growth of the databases over time so you can be aware of future space requirements. Alternatively, the following T-SQL can be used for SQL Server 2012 and higher: [crayon-676ddcaf24d92506708386/] Read more