get the backup compression value directly from server (#2223)

This commit is contained in:
Barbara Valdez
2023-09-10 23:57:43 -07:00
committed by GitHub
parent e822d3df46
commit 7741202293

View File

@@ -2326,8 +2326,8 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement
private void LoadDBSettingsProperties() private void LoadDBSettingsProperties()
{ {
this.checkBackupChecksum = this.configService.GetServerSmoConfig(server, this.configService.BackupChecksumDefaultPropertyNumber).ConfigValue == 1; this.checkBackupChecksum = server.Configuration.DefaultBackupChecksum.ConfigValue == 1;
this.checkCompressBackup = this.configService.GetServerSmoConfig(server, this.configService.BackupCompressionDefaultPropertyNumber).ConfigValue == 1; this.checkCompressBackup = server.Configuration.DefaultBackupCompression.ConfigValue == 1;
this.dataLocation = server.Settings.DefaultFile; this.dataLocation = server.Settings.DefaultFile;
this.logLocation = server.Settings.DefaultLog; this.logLocation = server.Settings.DefaultLog;
this.backupLocation = server.Settings.BackupDirectory; this.backupLocation = server.Settings.BackupDirectory;