From 7741202293920a58dfd9ad1262884597ff1a9d97 Mon Sep 17 00:00:00 2001 From: Barbara Valdez <34872381+barbaravaldez@users.noreply.github.com> Date: Sun, 10 Sep 2023 23:57:43 -0700 Subject: [PATCH] get the backup compression value directly from server (#2223) --- .../ObjectManagement/ObjectTypes/Server/ServerPrototype.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.SqlTools.ServiceLayer/ObjectManagement/ObjectTypes/Server/ServerPrototype.cs b/src/Microsoft.SqlTools.ServiceLayer/ObjectManagement/ObjectTypes/Server/ServerPrototype.cs index 341f29f1..0e377b6c 100644 --- a/src/Microsoft.SqlTools.ServiceLayer/ObjectManagement/ObjectTypes/Server/ServerPrototype.cs +++ b/src/Microsoft.SqlTools.ServiceLayer/ObjectManagement/ObjectTypes/Server/ServerPrototype.cs @@ -2326,8 +2326,8 @@ namespace Microsoft.SqlTools.ServiceLayer.ObjectManagement private void LoadDBSettingsProperties() { - this.checkBackupChecksum = this.configService.GetServerSmoConfig(server, this.configService.BackupChecksumDefaultPropertyNumber).ConfigValue == 1; - this.checkCompressBackup = this.configService.GetServerSmoConfig(server, this.configService.BackupCompressionDefaultPropertyNumber).ConfigValue == 1; + this.checkBackupChecksum = server.Configuration.DefaultBackupChecksum.ConfigValue == 1; + this.checkCompressBackup = server.Configuration.DefaultBackupCompression.ConfigValue == 1; this.dataLocation = server.Settings.DefaultFile; this.logLocation = server.Settings.DefaultLog; this.backupLocation = server.Settings.BackupDirectory;