mirror of
https://github.com/ckaczor/sqltoolsservice.git
synced 2026-01-13 17:23:02 -05:00
get the backup compression value directly from server (#2223)
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user