diff --git a/extensions/sql-database-projects/src/dialogs/publishDatabaseDialog.ts b/extensions/sql-database-projects/src/dialogs/publishDatabaseDialog.ts index 773d86e817..7f2404ac68 100644 --- a/extensions/sql-database-projects/src/dialogs/publishDatabaseDialog.ts +++ b/extensions/sql-database-projects/src/dialogs/publishDatabaseDialog.ts @@ -370,7 +370,7 @@ export class PublishDatabaseDialog { } // change the database inputbox value to the connection's database if there is one - if (this.connection.options.database) { + if (this.connection.options.database && this.connection.options.database !== constants.master) { this.targetDatabaseTextBox!.value = this.connection.options.database; } });