Get-DPSDatabaseVersion
Synopsis
Get the DVLS database version.
Syntax
__AllParameterSets
Get-DPSDatabaseVersion -ConnectionString <string> [<CommonParameters>]Description
Retrieve the database's current version number. If said number is 0, the database may not be properly initialized.
Examples
Example 1
PS C:\> $connectionString = "Server=192.168.1.100;Database=dvls;User Id=dvlsuser;Password=SecurePass123!;TrustServerCertificate=True;Encrypt=False"
PS C:\> Get-DPSDatabaseVersion -ConnectionString $connectionStringGet the current database version to verify database state.
Parameters
-ConnectionString
Connection string found in appsettings.json
CommonParameters
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
Outputs
System.Int32
Notes
For more information, type "Get-Help Get-DPSDatabaseVersion -detailed". For technical information, type "Get-Help Get-DPSDatabaseVersion -full".
Last updated
Was this helpful?