Skip to main content

Get MSSQL Database Version

Summary

The script collects the Version and Patch Level information of the MSSQL Server and then saves this data into a designated Custom Table - pvl_mssql_db_version.

Sample Run

First Execution:
Execute the script against any online Windows machine with the Set_Environment parameter set to 1 to create the custom table.
First Execution

Regular Executions:
Execute the script against the online MSSQL servers to gather the version.
Regular Executions

Dependencies

Internal Monitor - Execute Script - Get MSSQL Database Version

Variables

NameDescription
ProjectNameGet-MSSQLDBVersion
WorkingDirectoryC:/ProgramData/_automation/script/Get-MSSQLDBVersion
TableNamepvl_mssql_db_version

User Parameter

NameExampleMandatoryDescription
Set_Environment1FalseExecute the script against any online Windows machine with the Set_Environment parameter set to 1 to create the custom table.

Output

  • Script Log
  • Custom Table
  • Dataview