diff --git a/extensions/mssql/src/objectManagement/ui/databaseFileDialog.ts b/extensions/mssql/src/objectManagement/ui/databaseFileDialog.ts index f582af38c7da..23e15fbf21d4 100644 --- a/extensions/mssql/src/objectManagement/ui/databaseFileDialog.ts +++ b/extensions/mssql/src/objectManagement/ui/databaseFileDialog.ts @@ -217,9 +217,9 @@ export class DatabaseFileDialog extends DialogBase { = this.inMegabytesAutogrowth.enabled = this.autoFilegrowthInput.enabled = this.limitedToMbFileSize.enabled - = this.limitedToMbFileSizeInput.enabled = this.unlimitedFileSize.enabled = this.result.isAutoGrowthEnabled = checked; + this.limitedToMbFileSizeInput.enabled = checked && this.limitedToMbFileSize.checked; }, true, true); // Autogrowth radio button and input section