| Ripat DBA | NL | Contact |
| Server viewer | Database | Download | Change menu | Extra tables | Examples | Q & A | License info | Version history | SQL articles |
|
Extra tables for more reports. Last changed: 31 March 2024 Create tables To create more reports some extra tables should be created. The tables which are needed to show a historical view for the diskspace, database growth, the last serverinformation and whether a server is up to date with server updates Create four extra tables in the database ServerViewer. -- Drives -- DatabaseSize -- ServerInfo -- ServicePackInfo Drives Create the table 'Drives', this contains the diskspace. Fill this daily. See SQL articles. DatabaseSize Create the table 'DatabaseSize', this contains the database usage and size. Fill this daily. ServerInfo Create the table 'ServerInfo', this contains information about the server. Fill this daily. ServicePackInfo Create the table 'ServicePackInfo', update when a new SP or CU or SU or GDR or Hotfix is released. Example content for table Drives for Server1 for two days:
Example content for table DatabaseSize for Server1 for two days:
Example content for table ServerInfo for Server1 for five days:
The info comes from sys.dm_os_sys_info. Example content for table ServicePackInfo for 2017 and 2019: ![]() See Examples for the reports created with these tables. |
| Ripat DBA | Contact | © Copyright 2010 - 2025 RipatDBA |