An Azure relational database service.
Hello @Robert Lang
The DEFAULT_DATABASE option isn't supported in Azure SQL Database, so you can't change a user's or login's default database from master to another database as you would in SQL Server or Azure SQL Managed Instance.
The supported approach is to specify the target database in the client connection. For example:
- In your connection string, set Database=NewDatabase (or Initial Catalog=NewDatabase).
- In SQL Server Management Studio (SSMS), click Options → Connection Properties and set Connect to database to NewDatabase before connecting.
If you're using contained database users (the recommended authentication model for Azure SQL Database), make sure the user is created within NewDatabase and connect directly to that database.
Please "Accept the Answer" if this information helped you. This will help us and others in the community as well.